Day 21: Backend Logic Part 2(React Native)
Hey!, It’s 21 days out of 30 already. I’m going to be brief and go straight and update you on how the backend is coming up as far as functionality is concerned.
So in yesterday’s post, I made mention of some errors I encountered whilst implementing the backend logic. The funny thing was that, after refactoring my code and splitting each routing (let’s say navigation for authentication or navigation within the app, etc) into their own modules, I forgot to import the react library because I used some little bit of JSX within the code hence getting the error: ReferenceTypeError: Can't find variable:React
Below is a sample code of what I mean:
Line 11: Here I used the Header component after importing it on line 3. And that is how JSX looks like. So I had to correct or fix the error by importing React on line 1
Today, I realized firebase will not allow me to create a user collection to accept additional information about the user I’m signing up through the firebase createUserWithEmailAndPassword()
method. I will look into how I can solve this issue on day 22.
Wrap up:
Today, I touched on the challenges I continue to face whiles building a project(expense tracker app) including the ones I have been able to overcome.
Github Repo: https://github.com/victorbruce/react-native30