coveo.analytics 2.22.3 → 2.23.2
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
|
@@ -179,9 +179,9 @@ class ReactNativeStorage implements WebStorage {
|
|
|
179
179
|
|
|
180
180
|
// Create an API client
|
|
181
181
|
const client = new CoveoAnalyticsClient({
|
|
182
|
-
token: 'YOUR_API_KEY'
|
|
183
|
-
runtimeEnvironment: ReactNativeRuntime({
|
|
184
|
-
token: 'YOUR_API_KEY'
|
|
182
|
+
token: 'YOUR_API_KEY',
|
|
183
|
+
runtimeEnvironment: new ReactNativeRuntime({
|
|
184
|
+
token: 'YOUR_API_KEY',
|
|
185
185
|
storage: new ReactNativeStorage(),
|
|
186
186
|
}),
|
|
187
187
|
});
|
|
@@ -189,7 +189,7 @@ const client = new CoveoAnalyticsClient({
|
|
|
189
189
|
client.sendCustomEvent({
|
|
190
190
|
eventType: 'dog',
|
|
191
191
|
eventValue: 'Hello! Yes! This is Dog!',
|
|
192
|
-
language: 'en'
|
|
192
|
+
language: 'en',
|
|
193
193
|
});
|
|
194
194
|
```
|
|
195
195
|
|