React Native + Firebase + Expo versions love triangle issues

社会主义新天地 提交于 2019-12-10 10:39:59

问题


I am trying to implement React Native authentication with Firebase using Expo. I am currently having following versions:

  • Expo: 20.0.0
  • npm: 5.4.0
  • firebase: 4.3.0

I get the following error:

Error: React native is not installed. Please run npm install in your project directory.

How I got here

Expo recommends npm version 4.6.1. (In fact, on Expo forum here in post about npm breaking apps, it has been advised to downgrade to 4.* version of npm). But firebase 4.3.0 fails to install with npm version 4.6.1. So I upgraded npm to latest 5.4.0. Firebase installed fine, but now I get above error in Expo. And here is error message from when I try to install firebase with npm 4.6.1:

Question(s)

  • Can I use some older version of firebase which will work with npm 4.6.1? Which version would that be?
  • Is there some other workaround (other then older firebase version)? Did anybody implement RN + Firebase + Expo successfully?

Edit: seeking answers on Expo forum: link

来源:https://stackoverflow.com/questions/46029248/react-native-firebase-expo-versions-love-triangle-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!