React-native-onesignal: Undefined is not an object (evaluating 'RNOneSignal.configure')

Created on 18 Aug 2017  路  6Comments  路  Source: OneSignal/react-native-onesignal

I get this error, even after relink the lib as #208

It points to the line 131, index.js

static configure() {
        RNOneSignal.configure();
    }

react-native-cli: 2.0.1
react-native: 0.44.0

Most helpful comment

Yes, i found out that i duplicate installing OneSignal.
One by pod, one by npm. After removed one of them and i got it work.
Have you tried to relink the lib?

All 6 comments

your solved?

Yes, i found out that i duplicate installing OneSignal.
One by pod, one by npm. After removed one of them and i got it work.
Have you tried to relink the lib?

Possibly yes, I will try again using only the pod in a new project

Which one did you remove and how?

@masudhossain I removed the pod install and use npm + link library, its easier to manage dependencies.

@Tom29 Thank you, that fixed everything 馃憤

Was this page helpful?
0 / 5 - 0 ratings