All Questions
67 questions
0
votes
0
answers
29
views
TypeError: Invalid Attempt To Destructure Non-Iterable Instance Error Message (React Navigation/Firebase Auth)
The entire error message is:
TypeError: Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a symbol.iteratormethod
My App.js is as follows:
...
0
votes
1
answer
25
views
Can't type on TextInput when using navigate for screen
I am using firebase for authentication and for database, then I am trying to add navigation screen on my code but now, I can't type on the textInput. Does anyone have an idea? here's my code:
import { ...
1
vote
2
answers
88
views
The action 'NAVIGATE' with payload {"name":"Game","params":{"roomId":"..."}} was not handled by any navigator
I am creating a game in react-native (typescript) using firebase, but I encounter this error while adding a "Game" screen:
I have this code for my App.tsx :
import React, { useEffect, ...
2
votes
1
answer
123
views
React Native not persisting Firebase User
I'm using ReactNativeAsyncStorage to persist a Firebase User. However, my user is not being persisted upon reload of the application. The useAuth hook does work when the app is loaded. What am I doing ...
2
votes
2
answers
528
views
Prevent React Native remount of component on context value change
In a chat app I am building I want to deduct credits from a user's account, whenever the users sends a message and when a chat is initiated.
The user account is accessible in the app as a context and ...
1
vote
1
answer
401
views
React Native renders previous page before going to the intended screen
New to react native so I'm not sure if this is just a glitch. My ultimate intention is to check if a user has been fully onboarded or not. If a user logs in, they're a returning user, so they shouldn'...
0
votes
1
answer
1k
views
DeepLinking with RN Firebase Messaging / React Navigation from quit state not working
Expected Behavior: User gets a notification via Firebase -> User Taps on notification -> app opens up and goes to correct page.
Actual Behavior: When the user taps on the notification (while App ...
0
votes
1
answer
289
views
React-native app: navigation.navigate is not a function
(In 'navigation.navigate("Home")', 'navigation.navigate' is undefined)
const handleLogin = () => {
auth
.signInWithEmailAndPassword(email, password)
.then((...
0
votes
1
answer
89
views
'NAVIGATE' with payload {"name":"LoginStack","params":{"screen":"Login"}} was not handled by any navigator
I have an error when navigating from Home to Login Screen when the user press the button Sign out.
Here is the App component:
import { NavigationContainer } from "@react-navigation/native";
...
1
vote
1
answer
861
views
React Native: Rendered fewer hooks than expected
I'm currently trying to develop an app with multiple screens. Specifically, I'm working on the navigator component that directs the user to the login screen or the home screen based on whether they ...
1
vote
1
answer
530
views
How can I select specific screens to show to different types of users in Expo/Firebase?
I'm creating an Expo application (using Firebase as the backend service) with three different types of users, and I'm trying to restrict certain users from seeing other screens.
For example, there is ...
0
votes
2
answers
121
views
Firebase Persisting Auth with Stack Navigator
Attempting to let Firebase persist authentication within the app.js of React Native by doing the following:
There is a sign in page that envokes auth() sign in via Firebase, which works fine, and ...
0
votes
2
answers
447
views
Firestore data won't load until I change code file on React Native App
This might sound weird but my Firestore data won't display on my app unless I save my code files.
Here is my screen when I get to the screen for the first time. Also, the items under Today's Deals are ...
1
vote
1
answer
284
views
How to prevent firebase authentication to set the user if the promise in the then block fails
I am new to firebase authentication with React Native.
I have two navigation stacks - Auth Stack(contains only auth screens like sign up, sign in) & App stack(contains home screen).
const [user, ...
2
votes
1
answer
161
views
can't find variable: user. I am using firebase auth and the latest SDK, expo SDK 42, react navigation 6.x.x
import { StyleSheet, Text, View } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-...