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:

PackageRegistryPurpose
@ansight/react-nativenpmJavaScript API, React inspection, and a bridge to the native iOS and Android SDKs.
npm install @ansight/react-native
npx pod-install

The package uses React Native autolinking. Its version expects matching native SDK packages:

PlatformNative dependency
iOSCocoaPods Ansight and AnsightObjC 1.4.0-preview.1 through React Native autolinking.
AndroidMaven ai.ansight:ansight-android 1.4.0-preview.1 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.