Ruairí Oliver
Ruairí Oliver

Reputation: 6162

React Native FIrebase with Wix React Native Navigation

Has anyone got these 2 working together?

I added react native firebase to my app and it crashes on start up.

I then tested the starter kit provided by react native firebase and once I install react native navigation the app crashes.

Using React Native 0.51, React native navigation v1.1.365 and react native firebase 3.2.2

Thanks

Upvotes: 1

Views: 1475

Answers (2)

SALMAN KHAN
SALMAN KHAN

Reputation: 66

Yeah.

It's Possible.

  • What I did Was first Installed Firebase and configured.

  • Then I Installed Wix/react-native Navigation. Follow the steps mentioned in the Official Documentation. Link for the same to Install and configure is https://wix.github.io/react-native-navigation/#/installation-android.

    a command to install library is "sudo npm install --save react-native-navigation@latest".

    Note: App crashes due to MainActivity File. Please remove unwanted code snippet. It should have following code snippet only. As shown Below. In MainActivity.java it should extend com.reactnativenavigation.controllers.SplashActivity instead of ReactActivity.

This file can be located in android/app/src/main/java/com/yourproject/.

 import com.reactnativenavigation.controllers.SplashActivity;

 public class MainActivity extends SplashActivity {

 }

Upvotes: 2

Ruairí Oliver
Ruairí Oliver

Reputation: 6162

Managed to get up and running fully with React Native FCM. Seems to be the best option if using react native navigation.

Upvotes: 0

Related Questions