evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 682 forks source link

Cant use with Expo and create-react-native-app #1033

Closed ntvinhit closed 4 years ago

ntvinhit commented 6 years ago

I use "create-react-native-app" to create new react native app, then I use Expo to build and deploy the app. But there is no android or iOS directory inside to copy google-services.json to. I tried to run without copying it, then "Cannot read property 'getInitialNotification' of undefined" when I run FCM.getInitialNotification(); So, how can I still use this lib without android directory? I tried to eject but I don't want to use Expo Kit.

I use Galaxy S7 Edge with Android 8.0.0, React Native version 0.55.2, react-native-fcm version 16.2.0

Please help me Thanks

evollu commented 6 years ago

does it provide some documentation on how to add 3rd party modules? there must be a way

christianchown commented 6 years ago

Duplicate of #1029 and #1044

@ntvinhit, you will need to eject, and then follow the steps in