pass data between screens using react native expo router
I’m trying to pass the pressed product data to the product screen using RN expo route but I’m getting
TypeError: Cannot read property ‘params’ of undefinedenter image description here
Expo Router – Web Specific component in _layout.jsx does not show content from other pages in the directory
I am trying to use a bottom tab bar on iOS and Android and a top nav bar on web. I have the following directory:
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)).
i have a problem whit the expo router header
The problem occurs when I use router.navigate(“/readView”). The readView does not display a header.
How to set center tab as Initial tab in expo router
I tried setting the center tab as the initial tab but its not working. Also pressing back button from center screen takes to the left most tab and then it exits.
Expo Router freezes screen when using gestures to dismiss a stack screen after dismissing a modal
I’ve submitted an issue to Expo for this, but I was wondering if anyone might have a good workaround for now.
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: