ExpoDeviceAdapter
Device adapter for Expo projects using expo-device and expo-application.
The ExpoDeviceAdapter uses Expo's native modules to collect device information.
Installation
npx expo install expo-device expo-applicationUsage
import { TeardownCore } from '@teardown/react-native';
import { ExpoDeviceAdapter } from '@teardown/react-native/adapters/expo';
import { MMKVStorageAdapter } from '@teardown/react-native/adapters/mmkv';
export const teardown = new TeardownCore({
org_id: 'your-org-id',
project_id: 'your-project-id',
api_key: 'your-api-key',
storageAdapter: new MMKVStorageAdapter(),
deviceAdapter: new ExpoDeviceAdapter(),
});Import Path
import { ExpoDeviceAdapter } from '@teardown/react-native/adapters/expo';Collected Data
Application Info
version- Fromexpo-applicationnativeApplicationVersionbuildNumber- Fromexpo-applicationnativeBuildVersionbundleId- Fromexpo-applicationapplicationId
Hardware Info
deviceName- Fromexpo-devicedeviceNamebrand- Fromexpo-devicebranddeviceType- Fromexpo-devicedeviceType(phone, tablet, desktop, tv, unknown)
OS Info
osName- Fromexpo-deviceosNameosVersion- Fromexpo-deviceosVersion
When to Use
- Expo managed workflow projects
- Expo bare workflow projects using Expo modules
- Projects using Expo SDK 44+
Requirements
expo-device>= 4.0.0expo-application>= 4.0.0