React Native Packages
Review the React Native bridge package, its native SDK dependencies, compatibility requirements, and Expo packaging model.
Package
React Native apps install one JavaScript package:
| Package | Registry | Purpose |
|---|---|---|
@ansight/react-native | npm | JavaScript API, network capture, purchase diagnostics, React inspection, and a bridge to the native iOS and Android SDKs including Clipboard tools. |
npm install @ansight/react-native@latest
npx pod-install
The package uses React Native autolinking. Its version expects matching native SDK packages:
| Platform | Native dependency |
|---|---|
Matching CocoaPods Ansight and AnsightObjC dependencies through React Native autolinking. | |
Matching Maven ai.ansight:ansight-android dependency through the package’s Android module. |
Compatibility
- React Native 0.72 or newer.
- Android API 23 or newer with a Java 17-compatible Android build toolchain.
- iOS/iPadOS deployment target 15.0 or newer.
Expo apps use the same package but require a custom development client because Expo Go cannot load the native bridge. Follow Expo Development Builds for that packaging flow.
Follow React Native Setup for the complete installation and startup flow. Review React Native Security before including the bridge in a distributable build.