0

Today I created an (empty) Android app using the "react-native-firebase" and "native-base" packages. It works in debug mode, but in release mode crash occurs.

Steps to reproduce the problem:

  1. Create a new app

    react-native init BaseTest
    
    cd BaseTest
    
  2. Install the "native-base"

    npm install native-base --save
    
    react-native link
    
  3. Install the "react-native-firebase"

    https://rnfirebase.io/docs/v3.1.*/installation/initial-setup
    
    https://rnfirebase.io/docs/v3.1.*/installation/android
    
  4. Generating Signed APK

    https://facebook.github.io/react-native/docs/signed-apk-android.html
    
  5. Build release and install

    cd android
    
    gradlew assembleRelease
    
    adb install app-release.apk
    

I could not find the error. Does anyone have any ideas?enter image description here

Lucas Boemeke
  • 211
  • 2
  • 6

1 Answers1

0

Hi I got the same issue and it really aced my head but I managed to resolve it. So instead of running

react-native link run react-native link **native-base**.

I hope this helps. Happy coding :)

HaC
  • 902
  • 12
  • 24
Mufassir
  • 1
  • 2