Skip to content

Commit 6b129d4

Browse files
authored
Merge pull request #3082 from segmentio/niall/device_mode_improvments
Device mode improvements for RN 2.0
2 parents dd625e2 + 220bf08 commit 6b129d4

File tree

2 files changed

+3
-2
lines changed
  • src/connections
    • destinations/catalog/firebase
    • sources/catalog/libraries/mobile/react-native

2 files changed

+3
-2
lines changed

src/connections/destinations/catalog/firebase/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,15 @@ By default, Segment only bundles `Firebase/Core` which is [Firebase's Analytics
108108

109109
## Setting up Firebase with Analytics-React-Native
110110

111-
If you use Segment's React Native source library, you must explicitly bundle the mobile SDKs for both iOS and Android with your project.
111+
If you use Segment's older React Native source library, you must explicitly bundle the mobile SDKs for both iOS and Android with your project.
112112

113113
1. Use yarn to add the `analytics-react-native-firebase` SDKs. (`@segment/analytics-react-native-firebase`)
114114
2. Add `import` statements to your code so you can access the SDKs.
115115
3. Go to the `await analytics.setup` configuration in your code, and find (or add) the `using:` item. Add "Firebase" to the list of device-mode destinations in the `using` item.
116116
4. Change to your iOS directory and run `pod install`.
117117
5. Add the `analytics-react-native-firebase` module to your `build.gradle` file. (See Step.4 of [Getting Started on Android](/docs/connections/destinations/catalog/firebase/#getting-started-on-android))
118118

119+
For React Native 2.0 you can reference the [install guide](https://github.com/segmentio/analytics-react-native/blob/master/packages/plugins/plugin-firebase/README.md){:target="_blank"}.
119120
## Identify
120121

121122
When you call `identify` Segment will map to the corresponding Firebase Analytics calls:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ These are the example plugins you can use and alter to meet your tracking needs:
492492
| IDFA | `@segment/analytics-react-native-plugin-idfa` |
493493
494494
## Supported Destinations
495-
Segment supports these destinations for Analytics React Native 2.0 in device-mode, with more to follow. Cloud-mode destinations are also supported:
495+
Segment supports a large number of [Cloud-mode](/docs/connections/destinations/#connection-modes) destinations. Segment also supports the below destinations for Analytics React Native 2.0 in device-mode, with more to follow:
496496
- [Adjust](https://www.npmjs.com/package/@segment/analytics-react-native-plugin-adjust){:target="_blank"}
497497
- [Amplitude Session](https://www.npmjs.com/package/@segment/analytics-react-native-plugin-amplitude-session){:target="_blank"}
498498
- [Appsflyer](https://www.npmjs.com/package/@segment/analytics-react-native-plugin-appsflyer){:target="_blank"}

0 commit comments

Comments
 (0)