question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined is not an object (evaluating 'RNPushNotification.presentLocalNotification')

See original GitHub issue

Hello,

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:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:28 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
flaviosbertcommented, Feb 10, 2017

Apparently i have the same problem, with a different message: undefined is not an object (evaluating RNPushNotification.getInitialNotification)

Any ideas?

4reactions
nicolaselmircommented, Jul 27, 2017

I have the same issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found