@microsoft/omnichannel-chat-sdk 1.11.3-main.7a14964 → 1.11.3-main.9b6b5bc
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 +22 -11
- package/package.json +1 -1
package/README.md
CHANGED
@@ -150,39 +150,50 @@ npm install @microsoft/omnichannel-chat-sdk --save
|
|
150
150
|
|
151
151
|
## Installation on React Native
|
152
152
|
|
153
|
-
|
153
|
+
**Important:**
|
154
|
+
- For React Native versions **below 0.71**: Steps 1, 2, 3 are **required for both Android and iOS**.
|
155
|
+
- For React Native versions **0.71 and above**: Steps 1, 2, 3 are **required only for iOS** (not needed for Android).
|
154
156
|
|
155
|
-
|
157
|
+
### Steps
|
158
|
+
|
159
|
+
1. Install `react-native-get-random-values`
|
156
160
|
|
157
161
|
```console
|
158
|
-
npm install
|
162
|
+
npm install react-native-get-random-values --save-dev
|
159
163
|
```
|
160
164
|
|
161
|
-
|
162
|
-
|
165
|
+
2. Install `react-native-randombytes`
|
163
166
|
```console
|
164
167
|
npm install react-native-randombytes --save-dev
|
165
168
|
```
|
166
169
|
|
167
|
-
|
168
|
-
|
170
|
+
3. Install `react-native-get-random-values`
|
169
171
|
```console
|
170
172
|
npm install react-native-get-random-values --save-dev
|
171
173
|
```
|
172
174
|
|
173
|
-
|
175
|
+
**Summary Table:**
|
176
|
+
|
177
|
+
| React Native Version | Platform | Are these steps required? |
|
178
|
+
|-------------------------|-----------|--------------------------|
|
179
|
+
| Below 0.71 | Android | ✅ Yes |
|
180
|
+
| Below 0.71 | iOS | ✅ Yes |
|
181
|
+
| 0.71 and above | Android | ❌ No |
|
182
|
+
| 0.71 and above | iOS | ✅ Yes |
|
183
|
+
|
184
|
+
4. Install `react-native-url-polyfill`
|
174
185
|
|
175
186
|
```console
|
176
187
|
npm install react-native-url-polyfill --save-dev
|
177
188
|
```
|
178
189
|
|
179
|
-
|
190
|
+
5. Install `@azure/core-asynciterator-polyfill`
|
180
191
|
|
181
192
|
```console
|
182
193
|
npm install @azure/core-asynciterator-polyfill --save-dev
|
183
194
|
```
|
184
195
|
|
185
|
-
|
196
|
+
6. Update *metro.config.js* to use React Native compatible Node Core modules
|
186
197
|
|
187
198
|
```ts
|
188
199
|
module.exports = {
|
@@ -197,7 +208,7 @@ The following steps will be required to run Omnichannel Chat SDK on React Native
|
|
197
208
|
};
|
198
209
|
```
|
199
210
|
|
200
|
-
|
211
|
+
7. Add the following *import* on top of your entry point file
|
201
212
|
|
202
213
|
```ts
|
203
214
|
import 'node-libs-react-native/globals';
|