简体   繁体   中英

Problem after linking Firebase to a React Native app

I am trying to link my react-native app to firebase and work on the auth module.

I followed the steps of the installation in https://rnfirebase.io/

It works when I run npx react-native run-android

But when I use expo start to work on the pre-production app I always get the error you attempted to use a firebase module that is not installed firebase.app() 在此处输入图像描述

After working on this problem for while, after solving it, I would like to share my answer.

The library https://rnfirebase.io/ does not work with a managed workflow like Expo, so be sure to use the bare workflow to work with the library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM