connect-x-reactnative-livechat-sdk 1.4.2-legacy → 1.4.4-legacy

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/README.md CHANGED
@@ -21,6 +21,39 @@ npm install connect-x-reactnative-livechat-sdk
21
21
  yarn add connect-x-reactnative-livechat-sdk
22
22
  ```
23
23
 
24
+ ### Note for legacy version (react native 0.72++)
25
+ ```bash
26
+ npm install connect-x-reactnative-livechat-sdk@1.4.4-legacy
27
+
28
+ #or
29
+
30
+ yarn connect-x-reactnative-livechat-sdk@1.4.4-legacy
31
+ ```
32
+
33
+ You need to install the following peer dependencies manually:
34
+
35
+ ```bash
36
+ npm install @react-native-documents/picker react-native-svg@13.4.0 react-native-image-zoom-viewer react-native-device-info @react-native-community/netinfo
37
+ ```
38
+
39
+ If you have a problem with @react-native-documents/picker,
40
+ ```bash
41
+ * What went wrong:
42
+ A problem occurred configuring project ':react-native-documents_picker'.
43
+ > Could not determine the dependencies of null.
44
+ > Could not resolve all task dependencies for configuration ':react-native-documents_picker:classpath'.
45
+ > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:null.
46
+ Searched in the following locations:
47
+ - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/null/kotlin-gradle-plugin-null.pom
48
+ - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/null/kotlin-gradle-plugin-null.pom
49
+ Required by:
50
+ project :react-native-documents_picker
51
+ ```
52
+
53
+ follow this solution:
54
+ https://github.com/react-native-documents/document-picker/issues/777#issuecomment-2682848232
55
+
56
+
24
57
  ### Additional Peer Dependencies
25
58
 
26
59
  This library requires some peer dependencies. You need to install these libraries in your project as well:
@@ -1,33 +1,16 @@
1
1
  package com.connectxreactnativelivechatsdk
2
2
 
3
- import com.facebook.react.BaseReactPackage
3
+ import com.facebook.react.ReactPackage
4
4
  import com.facebook.react.bridge.NativeModule
5
5
  import com.facebook.react.bridge.ReactApplicationContext
6
- import com.facebook.react.module.model.ReactModuleInfo
7
- import com.facebook.react.module.model.ReactModuleInfoProvider
8
- import java.util.HashMap
6
+ import com.facebook.react.uimanager.ViewManager
9
7
 
10
- class ConnectXReactnativeLivechatSdkPackage : BaseReactPackage() {
11
- override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
12
- return if (name == ConnectXReactnativeLivechatSdkModule.NAME) {
13
- ConnectXReactnativeLivechatSdkModule(reactContext)
14
- } else {
15
- null
16
- }
8
+ class ConnectXReactnativeLivechatSdkPackage : ReactPackage {
9
+ override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
10
+ return listOf(ConnectXReactnativeLivechatSdkModule(reactContext))
17
11
  }
18
12
 
19
- override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
20
- return ReactModuleInfoProvider {
21
- val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
22
- moduleInfos[ConnectXReactnativeLivechatSdkModule.NAME] = ReactModuleInfo(
23
- ConnectXReactnativeLivechatSdkModule.NAME,
24
- ConnectXReactnativeLivechatSdkModule.NAME,
25
- false, // canOverrideExistingModule
26
- false, // needsEagerInit
27
- false, // isCxxModule
28
- true // isTurboModule
29
- )
30
- moduleInfos
31
- }
13
+ override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
14
+ return emptyList() // ไม่มี view manager
32
15
  }
33
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connect-x-reactnative-livechat-sdk",
3
- "version": "1.4.2-legacy",
3
+ "version": "1.4.4-legacy",
4
4
  "description": "for Live Chat",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",