You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-16Lines changed: 39 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,38 @@ Simple module that allows displaying Zopim Chat from Zendesk for React Native.
4
4
5
5
## VERSIONS
6
6
7
-
For RN version higher than 0.30 use version >= 0.1.x
7
+
For RN version higher than 0.59 use version >= 0.3.0
8
8
9
-
For RN version lower than 0.30 use version 0.0.2.
9
+
For RN version lower than 0.59 use version <= 0.2.2
10
10
11
-
Since version 0.2.0 `department` is set to `ZDCPreChatDataRequiredEditable`.
11
+
## Known Issues
12
12
13
-
## Known issues
14
-
15
-
I could not find how to make the import for iOS work properly since I'm using Cocoapods for Zendesk, if you have a suggestion that would be great.
16
-
17
-
## Getting started
13
+
## Getting Started
18
14
19
15
Follow the instructions to install the SDK for [iOS](https://developer.zendesk.com/embeddables/docs/ios-chat-sdk/introduction) and [Android](https://developer.zendesk.com/embeddables/docs/android-chat-sdk/introduction).
20
16
21
17
### Manual install
18
+
19
+
1. With npm:
20
+
21
+
`npm install react-native-zendesk-chat --save`
22
+
23
+
or with yarn:
24
+
25
+
`yarn add react-native-zendesk-chat`
26
+
22
27
#### iOS
23
-
1.`npm install react-native-zendesk-chat --save`
24
-
2. In Xcode, drag and drop `node_modules/react-native-zendesk-chat/RNZendeskChat.m` and `node_modules/react-native-zendesk-chat/RNZendeskChat.h` into your project.
In Xcode, drag and drop `node_modules/react-native-zendesk-chat/RNZendeskChat.m` and `node_modules/react-native-zendesk-chat/RNZendeskChat.h` into your project.
38
+
25
39
3. Configure `ZDCChat` in `AppDelegate.m`:
26
40
27
41
```
@@ -31,10 +45,11 @@ Follow the instructions to install the SDK for [iOS](https://developer.zendesk.c
31
45
```
32
46
33
47
#### Android
34
-
1.`npm install react-native-zendesk-chat --save`
48
+
35
49
2. Open up `android/app/main/java/[...]/MainApplication.java`
36
-
- Add `import com.taskrabbit.zendesk.*;` to the imports at the top of the file
37
-
- Add `new RNZendeskChatPackage(this)` to the list returned by the `getPackages()` method
50
+
51
+
- Add `import com.taskrabbit.zendesk.*;` to the imports at the top of the file
52
+
- Add `new RNZendeskChatPackage(this)` to the list returned by the `getPackages()` method
38
53
39
54
3. Append the following lines to `android/settings.gradle`:
0 commit comments