Relative Content

Tag Archive for react-nativeexpoexpo-router

How can I organize my app pages using expo-routes?

I’m currently developing an app for an class on my CS course using the expo for the first time and I’m having a lot of trouble to understand how the shared route would fit my app and how I should define my _layout’s (the way I’m doing I get just a blank screen, but it worked before adding nested routes to the (home)).

Confused about stack and file-based routing

In the index page I have three buttons: admin, trainer, user. When the user clicks admin there are a bunch of pages under admin same case for trainer. What’s the stack order in this case?

React Native Expo app stuck on default screen

My app was working fine until I switched to typescript, I followed expo docs on migrating to TS from JS then after running the app, it was on the default welcome to expo screen, it also said to create an index.js file in the app directory even though I already have a index.tsx file at ./app/

Pass params while navigating back

I am using expo-router, I have two screens ScreenA and ScreenB, from ScreenA I am navigating to screenB, in screenB I want to push data back to screenA by using router.back() or any other way, I don’t want to use router.push() since I want to go back not push the previous screen on top of the stack, Is there any way to pass params while navigating back in expo-router

Expo Router – How to wrap Stack in a layout

I would like to develop an application in React Native, but I’m having problems with layouts. I would like to create a layout and surround my application with it to use it only once. In the past, I created a MainLayout component that I used for each screen: