Expo / React Native Reading Device Info

1.1k views Asked by At

is there no way to read serial number using expo. I should be able to read using external packages like react-native-device-info but I can’t do this without expo? because when i install this package i get this and similar errors. I tried react-native link solution but it didn't work. I need to use expo for other reasons so I can't eject it. There is no part in expo device and constants where I can read these properties.

1

There are 1 answers

3
Fiston Emmanuel On

react-native-device-info depends on platform-specific native modules which will not link and compiled with the Expo Go client.

Expo SDK provides a compatible alternative package to use with Expo Go Client - https://docs.expo.dev/versions/latest/sdk/device/