Cant run on Android. Everything's linked. Any suggestions?
RN 0.46.3, 26 SDK
I'm having the same issues on iOS.
Unable to run any of the functions
e.g.
import DeviceInfo from 'react-native-device-info';
DeviceInfo.getSystemName()
Checked again about how its linked.
Seems like "react-native link react-native-device-info" does't work for android.
Linked manually and its fine!
Same issue for my iOS.. was putting stuff in #262 . Someone said it didn't work on emulators, but it doesn't work for emulators or physical devices for me.
I resolved this by navigating to the ios directory of the project and running pod install. I guess that doesn't get run in the linking stage for iOS? I also had to fix a couple of gradle things, but all of those functions work properly now on iOS and Android - both real and emulated devices for each system.
Closing this issue as the original problem was solved
Most helpful comment
I'm having the same issues on iOS.
Unable to run any of the functions
e.g.
import DeviceInfo from 'react-native-device-info';
DeviceInfo.getSystemName()