npm install @braze/react-native-sdk
npx expo install @braze/expo-plugin// app.json
{
"expo": {
"plugins": [
[
"@braze/expo-plugin",
{}
],
]
}
}npx expo prebuildimport { Platform } from "react-native";
import Braze from "@braze/react-native-sdk";
// Initialize the Braze SDK at runtime with the relevant credentials.
const apiKey = Platform.select({
android: "YOUR-ANDROID-API-KEY",
ios: "YOUR-IOS-API-KEY",
}) ?? "";
Braze.initialize(apiKey, "YOUR-SDK-ENDPOINT");
Braze.changeUser("Jane Doe")See the Braze Developer Guide for advanced integration options.
Note
This SDK has been tested with Expo version 54.0.8.
| Braze Expo Plugin | Braze React Native SDK |
|---|---|
| >=5.0.0 | >= 19.2.0 |
| >=4.0.0 | >= 19.1.0 |
| >=3.0.0 | >= 13.1.0 |
| >=2.0.0 | >= 8.3.0 |
| >=1.1.0 | >= 2.1.0 |
| 1.0.0 - 1.0.1 | >= 2.0.2 |
| <= 0.6.0 | 1.38.0 - 1.41.0 |
If you have questions, please contact support@braze.com.

