Undefined is not an object (evaluating '_reactNative.NativeModules.KCKeepAwake.activate) at index.js:506
See original GitHub issuePreviously was having error calling KeepAwake.activate()
in both iOS and Android.
After going through other issues which suggest a clean node_module
install, it did the trick but only for iOS.
I’m getting the error as mentioned in the title on Android.
“react-native”: “^0.55.4”, “react-native-keep-awake”: “^3.2.0”
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (1 by maintainers)
Top Results From Across the Web
"'undefined' is not an object" from Native Module in React Native
My problem was that, integrating React Native, the guide on creating native modules did not mention that the package needs to be declared...
Read more >React Native: undefined is not an object (evaluating '_this ...
Hi everybody, I have a react-native app created with RN CLI, using react-native 0.63, I'm trying to use SectionList but I'm getting the ......
Read more >Render Error undefined is not an Object (evaluating _react ...
Render Error undefined is not an Object ( evaluating _react.react .createElement) Fixed- React Native.
Read more >iOS : React Native, NavigatorIOS, undefined is not an object ...
iOS : React Native, NavigatorIOS, undefined is not an object ( evaluating 'this.props.navigator.push') [ Beautify Your Computer ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @albertkai , I had the same issue and I resolved it with this:
Removing the app from the device manually.
And then:
rm -rf node_modules then yarn / npm install will fix the issue