incompatibility react-native 0.55.4

0
react-native init --version 0.55.4 aplicativo

I used version 0.55.4 because the current version is giving 500 error

npm install firebase --save

I used these two commands on the console, and went to the project to put the firebase reference

import firebase from 'firebase';

When I give react-native run-android , error 500 appears

Error in node:

  

error: unable to resolve module 'firebase' from app.js module firebase

    
asked by anonymous 11.09.2018 / 18:28

1 answer

0

One solution would be to use the react-native-firebase lib to perform this integration and is compatible with higher versions to 0.55 according to documentation.

    
17.09.2018 / 22:51