I believe I've added all the correct lines of code to get to this point. I wonder what the problem is.
Does any one have any idea how to fix this?
componentDidMount: function() {
PushNotification.configure({
I have it setup like this.
Sounds like a missing import maybe?
import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;
this one maybe?
I tried it - I have it in my MainApplication.java file
I have this same issue :(
Same here, installed everything correctly and still getting it :/
Same here!
Same issue, but with a r.presentLocalNotification problem
+1
+1
same here
If anyone made the same as me, I fixed the undefined issue by adding var PushNotification = require('react-native-push-notification'); instead of the line I originally wrote import {PushNotification} from 'react-native-push-notification'
am having the same issue, undefined is not an object (evaluating push notifications.getIntialNotification
any solution please ?
@Couiljer i have to use import PushNotification from 'react-native-push-notification' only
Importing it without the brackets fixes the issue for me.
Most helpful comment
I have this same issue :(