2021-10-01
3984
#firebase#react native
Aman Mittal
17274
Oct 1, 2021 โ‹… 14 min read

Setting up email authentication with React Native, react-navigation, and Firebase

Aman Mittal ๐Ÿ‘จโ€๐Ÿ’ป Developer ๐Ÿ‘‰ Node.js, React, React Native | Tech Blogger with 1M+ views on Medium

Recent posts:

the replay december 17

The Replay (12/17/25): React2Shell, Shopify Winter โ€˜26, and more

Discover what’s new in The Replay, LogRocket’s newsletter for dev and engineering leaders, in the December 17th issue.

Matt MacCormack
Dec 17, 2025 โ‹… 34 sec read
react 2 shell vulnerability shruti kapoor

React2Shell exploit: What happened and lessons learned

Shruti Kapoor breaks down the React2Shell exploit and discusses lessons that dev teams can take away from one of the biggest security events of the year.

Shruti Kapoor
Dec 17, 2025 โ‹… 6 min read
Angular Vs. React Vs. Vue.js: Comparing Performance

Angular vs. React vs. Vue.js: A performance guide for 2026

React, Angular, and Vue still lead frontend development, but 2025 performance is shaped by signals, compilers, and hydration. Hereโ€™s how they compare.

Nefe Emadamerho-Atori
Dec 16, 2025 โ‹… 19 min read

Drizzle and React Native (Expo): Local SQLite setup

Learn how to use Drizzle ORM with Expo SQLite in a React Native app, including schema setup, migrations, and type-safe queries powered by TanStack Query.

Nitish Sharma
Dec 16, 2025 โ‹… 6 min read
View all posts

7 Replies to "Setting up email authentication with React Native, react-navigation, and Firebase"

  1. Just letting you know you have a type above. (You forgot the i) Great article!!

    Create a new file called src/navgation/index.js file and add the following code snippet:

  2. Thank you a lot for the article, it’s an amazing tutorial.

    In case you want to display the login or sign up error message on the log in screen, here’s a tip:
    UseContext ๐Ÿ™‚

    In AuthProvider.js, add
    const [error, setError] = useState(”);
    return (
    >>
    Then where the error is caught:
    setError(“login error”); (or whatever error message you want to display).

    In the login screen, add:
    const {error} = useContext(AuthContext);

    Under the password input:
    {error}

    Here you go ๐Ÿ™‚

  3. Terrifically well done tutorial! Clearly explained which makes the information easily digestible. Thanks for your help ๐Ÿ˜‰

  4. Thanks for the tutorial Aman! I’ve also added a username to the registration.. how can I display this with firebase’s user.displayName property? Been on this for hours… plz help!

  5. Thanks for reading it Lucia!

    If you want to use user.displayName field, you’ll have to update user.updateProfile({ displayName: “User’s Name”}} when signing up a new user.

Leave a Reply

Would you be interested in joining LogRocket's developer community?

Join LogRocketโ€™s Content Advisory Board. Youโ€™ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.

Sign up now