Comments (3)
I figured I didnt include the line
import { firebase } from '../../firebase/config'
in RegistrationScreen.js and thats the reason for the above error. Now firebase is loading but still registration screen is not working.
I get the following error when i call firebase.auth() in RegistrationScreen.js > onRegisterPress
Uncaught TypeError: _firebase_config__WEBPACK_IMPORTED_MODULE_4__.firebase.auth is not a function
I have the following in ./src/firebase/config.js
var firebase = require("firebase/app");
require("firebase/auth");
require("firebase/firestore");
const firebaseConfig = {
apiKey: 'xxxxx',
authDomain: 'abcd.firebaseapp.com',
databaseURL: 'https://xyz.firebaseio.com',
projectId: 'xyz',
storageBucket: 'xyzappspot.com',
messagingSenderId: '12345',
appId: '1:123456',
};
firebase.initializeApp(firebaseConfig);
console.log(firebase);
export { firebase };
from react-native-firebase.
Turns out I am using Firebase 9.x and it has lot of breaking changes and this tutorial is based on a older version. For the latest changes refer to the article
from react-native-firebase.
@ursvasan I know this is a bit late but if you wanted a reference for the Firebase 9 modular SDK you can find it here @
https://github.com/rybaier/react-native-firebaseModular ( I updated all the syntax and made a pull request)
I also created my own repo of it and added a few more features like SSO for Google and Apple, deleting accounts, update and delete for entities, and log out. you can find it here @ https://github.com/rybaier/react-native-firebase.
from react-native-firebase.
Related Issues (13)
- White screen on initial yarn ios HOT 7
- firebase repo is out of date HOT 5
- FirebaseError: [code=unavailable]: Failed to get document because the client is offline HOT 1
- need to change firebase config HOT 1
- expo build:android failed with error code 500
- Firebase crashing after installation HOT 1
- The action 'NAVIGATE' with payload {"name":"Home","params":{"user":{"email":"[email protected]","id":"xxx","fullName":"test"}}} was not handled by any navigator HOT 3
- The action 'NAVIGATE' with payload {"name":"Home","params":{"user":{"email":"[email protected]","id":"xxx","fullName":"test"}}} was not handled by any navigator #3 HOT 1
- Issue with navigation handler when navigate to a new screen HOT 9
- com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.string
- Component Exception Can't find variable: user
- Logout HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-firebase.