react-native-android-location-enabler: Error: Undefined an object reactNativeAndroidLocationEnabler2
I run this package with genymotion – android 6.0 and have this error Please give me any help. Thanks! package.js:
"react": "16.5.0",
"expo": "^31.0.2",
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 3
- Comments: 19 (5 by maintainers)
Here is my code.
the image above was checkout. I created new project and have the same error
@andrey-shostik Are you running this on iOS, as far as I’m concerned this will be null or undefined for iOS, wrap this function inside a platform check. I have realised this only works with Android since it’s there’s a different procedure for toggling location on and off for iOS. Do something like:
Ok, I’ll will check this asap.