React Native SDK for Amply: Mobile SDK to orchestrate in-app experiences and campaigns remotely, without app releases
npm install @amplytools/react-native-amply-sdkReact Native TurboModule bridge for the Amply SDK. Enables event tracking, deeplink campaigns, and real-time data collection in React Native apps.
| Feature | Status | Platform |
|---------|--------|----------|
| Event tracking | ✅ | Android, iOS |
| Deeplink campaigns | ✅ | Android, iOS |
| System events API | ✅ | Android, iOS |
| Data inspection | ✅ | Android, iOS |
| Debug/Logging | ✅ | Android, iOS |
| Advanced API (identify, setUserProperty, flush) | ⏳ | Android, iOS |
- React Native >= 0.79 (New Architecture enabled)
- Expo SDK >= 53 (for Expo apps)
- Android API 24+ / iOS 13.0+
``bash`
yarn add @amplytools/react-native-amply-sdk
For Expo, add the plugin to app.json:
`json`
{
"expo": {
"plugins": ["@amplytools/react-native-amply-sdk"]
}
}
`typescript
import Amply from '@amplytools/react-native-amply-sdk';
// Initialize
await Amply.initialize({
appId: 'YOUR_APP_ID',
apiKeyPublic: 'YOUR_PUBLIC_API_KEY',
debug: true, // optional: enable debug logging
});
// Track events
await Amply.track({
name: 'Button Tapped',
properties: { screen: 'home' },
});
// Listen for campaign deeplinks
const unsubscribe = await Amply.addDeepLinkListener((event) => {
console.log('Deeplink:', event.url);
});
``
Full integration guides, API reference, and examples:
See docs/DEVELOPMENT.md for development setup and contribution guidelines.
Apache License 2.0 - see LICENSE for details.