1

I am implementing API to connect app with server. I have to use deviceId there. As mentioned in here we can use third party library 'react-native-device-info'. But when I am using it I am getting errors as attached screenshots. As per error it's saying to do linking but as I am using react version 0.62, so autolinking is there. So What can be issue? It took too much time to search it but till now I didn't get a proper solution.

enter image description here

1 Answers1

2

react-native-device-info library wont work in Expo , since it requires linking of native modules hence the error.It will only work in pure react native apps.

You can check this by expo itself : expo-device

hopeit helps.feel free for doubts

Gaurav Roy
  • 6,561
  • 2
  • 11
  • 28