@usechat/react-native 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clipboard-LTWXJADM.mjs +64 -0
- package/dist/index.js +5106 -427
- package/dist/index.mjs +5015 -427
- package/package.json +5 -5
- package/dist/clipboard-O4FPD4J6.mjs +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usechat/react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Modular React Native Chat UI SDK with keyboard handling, customizable components, and rich features",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Lukasz Ko <hello@usechat.dev>",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tsconfig/react-native": "^3.0.6",
|
|
42
|
-
"@types/react": "
|
|
42
|
+
"@types/react": "^19.0.0",
|
|
43
43
|
"@types/react-native-web": "^0.19.2",
|
|
44
|
-
"react": "19.0.0",
|
|
45
|
-
"react-dom": "19.0.0",
|
|
46
|
-
"react-native": "0.79.5",
|
|
44
|
+
"react": "^19.0.0",
|
|
45
|
+
"react-dom": "^19.0.0",
|
|
46
|
+
"react-native": "^0.79.5",
|
|
47
47
|
"tsup": "^8.1.0",
|
|
48
48
|
"typescript": "^5.9.2"
|
|
49
49
|
},
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
var s=async e=>{console.log("copyToClipboard called with text:",e);try{try{let{setStringAsync:o}=await import("expo-clipboard");console.log("expo-clipboard imported successfully"),console.log("setStringAsync function:",o),await o(e),console.log("Text copied to clipboard successfully")}catch(o){throw console.error("Failed to import expo-clipboard:",o),new Error("expo-clipboard not available")}try{let o=await import("react-native-toast-message"),t=o.default||o;console.log("react-native-toast-message imported successfully"),t.show({type:"success",text1:"Copied to clipboard",text2:"Message copied successfully",position:"bottom",visibilityTime:2e3}),console.log("Toast shown successfully")}catch(o){console.log("Toast not available, but message copied to clipboard"),console.error("Toast import error:",o)}return!0}catch(o){console.error("Failed to copy to clipboard:",o);try{let t=await import("react-native-toast-message");(t.default||t).show({type:"error",text1:"Copy failed",text2:"Failed to copy message to clipboard",position:"bottom",visibilityTime:2e3})}catch(t){console.error("Copy failed: expo-clipboard not available"),console.error("Toast import error:",t)}return!1}},a=async()=>{try{return await import("expo-clipboard"),!0}catch{return!1}};export{s as copyToClipboard,a as isClipboardAvailable};
|