@@ -35,7 +35,7 @@ If you're on older react-native versions, please see the [Advanced Setup](#advan
3535
3636** Android** If you're on react-native >= 0.60, Android should autodetect this dependency. You may need to call ` react-native link `
3737
38- 1 . Call the JS Initializer:
38+ 2 . Call the JS Initializer:
3939
4040``` javascript
4141import ZendeskChat from " react-native-zendesk-chat" ;
@@ -44,7 +44,7 @@ import ZendeskChat from "react-native-zendesk-chat";
4444ZendeskChat .init (" YOUR_ZENDESK_ACCOUNT_KEY" );
4545```
4646
47- 1 . Show the Chat UI
47+ 3 . Show the Chat UI
4848
4949``` javascript
5050// On button press, when you want to show chat:
@@ -101,20 +101,20 @@ If this doesn't work, then you may need to do a complete manual install as follo
101101- Add `import com.taskrabbit.zendesk.*;` to the imports at the top of the file
102102- Add `new RNZendeskChatPackage(this)` to the list returned by the `getPackages()` method
103103
104- 1 . Append the following lines to `android/settings.gradle`:
104+ 2 . Append the following lines to `android/settings.gradle`:
105105
106106```gradle
107107include ':react-native-zendesk-chat'
108108project(':react-native-zendesk-chat').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zendesk-chat/android')
109109```
110110
111- 1 . Insert the following lines inside the dependencies block in ` android/app/build.gradle ` :
111+ 3 . Insert the following lines inside the dependencies block in ` android/app/build.gradle ` :
112112
113113``` gradle
114114compile project(':react-native-zendesk-chat')
115115```
116116
117- 1 . Configure ` ZopimChat ` in ` android/app/main/java/[...]/MainActivity.java `
117+ 4 . Configure ` ZopimChat ` in ` android/app/main/java/[...]/MainActivity.java `
118118
119119``` java
120120// Note: there is a JS method to do this!
0 commit comments