1
votes

I'm fairly new to React Native so I've been following the "The Complete React Native and Redux Course" by Stephen Grider. On section 9, lecture 59 he installs Firebase using npm with "npm install --save firebase", and so did I, however this only works for iOS for me. Whenever I run the app on an Android simulator I get this error saying Objects are not valid as a React child.

Screenshot

Edit: I'll try to explain this problem better as per advice from akraf. The only thing I need to do to recreate this Error is create a React Native project. Then install Firebase through npm to the project directory. Once I add the line "import firebase from 'firebase';" to the App.js file, the error occurs. Nothing else, just the import causes the error.

1
Welcome to Stack Overflow! It might help people which can potentially help if you show more in detail how you got to this screen shot. For example try to write the simplest possible app which shows this problem and add the the Java code to the question. You can edit your question to that effect. Also your screenshot is not readable. - akraf
@akraf Thank you very much for your comment. I tried to explain the situation a bit better and fixed the screenshot. - Astherae

1 Answers

0
votes

Try to install the version 5.0.2. Use this command as administrator:

npm install --save [email protected]

As far as i see, the current version (5.0.4) is buggy!