react-native-smartlinks
v2.0.3
Published
Native bridge for SmartLinks analytics and deep links on React Native
Maintainers
Readme
react-native-smartlinks
Native bridge for the SmartLinks React Native SDK — analytics, deep links, and native API routing on iOS and Android.
Install together with the umbrella package:
npm install smartlinks react-native-smartlinksNative dependencies
| Platform | Dependency |
|----------|------------|
| Android | live.smartlinks:smartlinks-sdk-core:2.0.1 (Maven Central, autolinked) |
| iOS | SmartLinksSDKCore ~> 2.0.2 (CocoaPods, via podspec) |
iOS setup
cd ios && pod installAdd Associated Domains: applinks:smartlinks.live
The iOS core SDK is published from smartlinks_ios.
Android setup
No extra Gradle steps — autolinking pulls the Maven artifact. Requires compileSdk 36, JDK 17, AGP 8.9+.
Deep links in JS
import { SmartLinks } from 'smartlinks';
SmartLinks.analytics.getLink((route) => {
console.log(route.route, route.params);
});