chabokpush / chabok-client-rn

Chabok react native wrapper
https://doc.chabokpush.com/react-native-bridge/introducing.html
5 stars 5 forks source link

Cannot read property 'playServicesAvailability' of undefined #2

Closed alikianinejad closed 6 years ago

alikianinejad commented 6 years ago

I have Ios Project with react native and try to config chabok on it but in this line this.chabok = new chabok.AdpPushClient(); i got this error: `Cannot read property 'playServicesAvailability' of undefined

chabok.js:10:56 loadModuleImplementation require.js:214:4 guardedLoadModule require.js:148:11 _require require.js:132:2 index.js:4 loadModuleImplementation require.js:214:4 guardedLoadModule require.js:148:11 _require require.js:132:2 App.js:12 loadModuleImplementation require.js:214:4`
alikianinejad commented 6 years ago

nothing ?

behrad commented 6 years ago

We have configured react native bridge for iOS successfully in our projects.

Can you provide us more details about the chabok section of your code?

amir-yaghoubi commented 6 years ago

I think you forgot to do the linking part. please run

react-native link react-native-chabok

this should solve the problem. otherwise please provide more information about steps you take to build the project from scratch.

alikianinejad commented 6 years ago

all done tnx