Build a React Native App with Firebase Auth & Chat #2 - Setup Authentication

  Рет қаралды 6,223

Code With Nomi

Code With Nomi

Күн бұрын

Пікірлер: 13
@faizxdor
@faizxdor 10 ай бұрын
Can't wait for the next video
@EdzonmxDev
@EdzonmxDev 10 ай бұрын
Me too
@grgrsm
@grgrsm 6 ай бұрын
The expo example shows file based routing, where the first group is rendered by default when index in the root layout is missing, and then the group (app) layout handle the display of ActivityIndicator and the logic based on authenticated state. Looks more clean and easy to read. It's also a bit more optimized by default compared to controlling the routing manually with useEffect hook. So basically it shows the root layout to be basic like this, without index. app/_layout export default function Root() { return ( ); } and inside the (app) folder the layout handles the routing based on state app/(app)/_layout export default function AppLayout() { const { isAuthenticated, isLoading } = useAuth(); // need to add isLoading state to the context. if (isLoading) { return ( ); } if (!isAuthenticated) { return ; } return ; } there's index in app/(app)/index for home page, but it won't be shown until you pass the authenticaion check, otherwise the Redicrect component sends you to the sign in page.
@ShahrukhKhan-yf7wz
@ShahrukhKhan-yf7wz 4 ай бұрын
when i use my screen is white nothing see please help is this logical error....?
@noumanshah8716
@noumanshah8716 Ай бұрын
getting same issue.
@jimwilken1490
@jimwilken1490 Ай бұрын
You can fix the Problem by renaming the AuthContextProvider to AuthContext.Provider in the AuthContext.js return ( {children} ); };
@wwavehs
@wwavehs Ай бұрын
hi! i just want to ask what extension do you use that allows you to add imports without you inputting it manually?
@noumanshah8716
@noumanshah8716 Ай бұрын
after adding getting error. "Text strings must be rendered with in a component".
@jessexing3456
@jessexing3456 10 ай бұрын
great work
@arunkumarbhardwaj4349
@arunkumarbhardwaj4349 10 ай бұрын
why are u using startPage as a loading component?
@codewithnomi
@codewithnomi 10 ай бұрын
This way until we get the user from the firebase, user will see loading page.
@arunkumarbhardwaj4349
@arunkumarbhardwaj4349 10 ай бұрын
@@codewithnomi you can create loading component in components folder as well.
@Shubuu7
@Shubuu7 10 ай бұрын
Please make all apps in cli
Build a React Native App with Firebase Auth & Chat #1 - Create App
15:18
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 18 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 197 МЛН
Wall Rebound Challenge 🙈😱
00:34
Celine Dept
Рет қаралды 19 МЛН
Build a React Native App with Firebase Auth & Chat #6 - Fetch Users
17:25
Mobile Devs Hate Servers. Expo Wants To Fix That.
16:05
Theo - t3․gg
Рет қаралды 76 М.
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
React Authentication Crash Course With Firebase And Routing
56:00
Web Dev Simplified
Рет қаралды 659 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 18 МЛН