Teardown

Device

Collect app, OS, and hardware info with Expo or react-native-device-info.

The device adapter reports the app version and device details the SDK needs to evaluate update rules. Pick one.

Expo

For Expo projects. Uses expo-device and expo-application.

npx expo install expo-device expo-application
import { ExpoDeviceAdapter } from "@teardown/force-updates/expo";

new TeardownCore({
  // ...
  deviceAdapter: new ExpoDeviceAdapter(),
});

react-native-device-info

For bare React Native projects.

npm install react-native-device-info
import { DeviceInfoAdapter } from "@teardown/force-updates/adapters/device-info";

new TeardownCore({
  // ...
  deviceAdapter: new DeviceInfoAdapter(),
});