undefined is not an object (evaluating 'RNPushNotification.presentLocalNotification')
See original GitHub issueHello,
I setup react-native-push-notification according the Readme, but when i use the localNotification like this:
var PushNotification = require('react-native-push-notification');
PushNotification.localNotification({
message: 'My notification message'
});
I have this error:
undefined is not an object (evaluating 'RNPushNotification.presentLocalNotification')
Have you some idea about this ?
My react native version: 0.36
Issue Analytics
- State:
- Created 7 years ago
- Reactions:9
- Comments:28 (4 by maintainers)
Top Results From Across the Web
react-native-push-notification is undefined - Stack Overflow
Its all working on iOS but on android I get undefined is not an object(evaluating RNPushnotification.getInitialNotifications).
Read more >cljsrn 2022-01-29 - Slack Archive
reminder.core=> rnpn #js {:handler #object[NotificationsComponent [object ... null is not an object (evaluating 'RNPushNotification.
Read more >Discussion of React Native Push Notifications
TypeError: Cannot read property 'refreshToken' of undefined. This error is located at: in NavigationContainer (at DrawerNavigator.js:18)
Read more >Typeerror: Undefined Is Not An Object (Evaluating ... - ADocLib
I have this error: undefined is not an object evaluating 'RNPushNotification.presentLocalNotification'. Have you some idea about this ? In this tutorial we will ......
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
Apparently i have the same problem, with a different message: undefined is not an object (evaluating RNPushNotification.getInitialNotification)
Any ideas?
I have the same issue