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-applicationimport { 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-infoimport { DeviceInfoAdapter } from "@teardown/force-updates/adapters/device-info";
new TeardownCore({
// ...
deviceAdapter: new DeviceInfoAdapter(),
});