Skip to content

Commit caf1243

Browse files
author
markzegarelli
authored
Merge branch 'master' into develop
2 parents ee8f7e5 + 2db43e1 commit caf1243

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/_redirects

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/connections/sources/catalog/libraries/mobile/react-native/migration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ title: React Native 2.0 Migration Guide
33
strat: react-native
44
---
55

6-
If you’re using `analytics-react-native 1.5.1` or older, follow these steps to migrate to `analytics-react-native 2.0`. You can continue to use your React Native source write key for the migration to view historical events. Additionally, with React Native 2.0, you don't need to leverage bundled SDK packages, but can use [this list of supported destinations](/docs/connections/sources/catalog/libraries/mobile/react-native/#supported-destinations).
6+
If you’re using `analytics-react-native 1.5.1` or older, follow these steps to migrate to `analytics-react-native 2.0`. You can continue to use your React Native source write key for the migration to view historical events. Additionally, with React Native 2.0, you don't need to leverage bundled SDK packages, but can use [this list of supported destinations](/docs/connections/sources/catalog/libraries/mobile/react-native#supported-destinations).
77

88
To migrate to React Native 2.0:
99

1010
1. Update the existing package:
1111
```js
12-
yarn upgrade @segment/analytics-react-native@2.2.0
12+
yarn upgrade @segment/analytics-react-native
1313
```
1414
2. Install additional dependencies:
1515
```js
@@ -88,7 +88,7 @@ PODS:
8888
{% endcodeexampletab %}
8989
{% endcodeexample %}
9090

91-
### Example client configuration for `analytics-react-native 2.2.0`
91+
### Example client configuration for `analytics-react-native 2.0`
9292

9393
{% codeexample %}
9494
{% codeexampletab App.tsx (or .js) %}
@@ -126,7 +126,7 @@ const App = () => {
126126
"nanoid": "^3.1.30",
127127
"@react-native-async-storage/async-storage": "^1.15.11",
128128
"@segment/analytics-react-native": "2.2.0",
129-
"@segment/analytics-react-native-plugin-firebase": "2.2.0",
129+
"@segment/analytics-react-native-plugin-firebase": "2.0",
130130
"@segment/sovran-react-native": "0.2.6",
131131
}
132132
```
@@ -165,7 +165,7 @@ onSendEvent = async() => {
165165
}
166166
```
167167

168-
### Example tracking implementation for `analytics-react-native 2.2.0`
168+
### Example tracking implementation for `analytics-react-native 2.0`
169169
Home.tsx
170170

171171
```js

0 commit comments

Comments
 (0)