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.
Asked
Active
Viewed 1,128 times
1 Answers
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
![](../../users/profiles/11355303.webp)
Gaurav Roy
- 6,561
- 2
- 11
- 28
-
2there is no property to get device id in above link. So how can we get it for expo apps? – Piyush Naredi Jul 11 '20 at 07:00