Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [expo-router]

A file-based router for React Native and web applications.

expo-router
0 votes
0 answers
15 views

Element type is invalid: expected a string or a class/function but got: undefined React Native

Here is the error: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your ...
CoolPerson879's user avatar
0 votes
2 answers
17 views

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 // Stack <...
zakria-abdelgny's user avatar
0 votes
0 answers
25 views

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 ...
Caio Peluti's user avatar
0 votes
0 answers
27 views

Nativewind is not working when functions are defined in tailwind.config.ts

I am using React Native, TypeScript, Expo and Nativewind. I defined some functions and used it to customize tailwind classes. And the style does not apply. Tailwind.config.ts: /* eslint-disable no-...
Jeonghyeon Lee's user avatar
0 votes
0 answers
16 views

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. I use router.navigate in a component located in the tabs folder, and readView is in the ...
gonzalo mina's user avatar
0 votes
0 answers
49 views

React native complains navigation state parsed from URL contains routes not present in root navigator even though it does

When I use router.replace in my application, it complains: "The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking ...
Phuong Tran's user avatar
0 votes
1 answer
43 views

Error Unmatched Route Error in Expo Router

I am encountering an "Unmatched Route" error when using Expo Router in my application. Below is the structure of my project: Folder Structure: app/ _layout.tsx (auth)/ _layout.tsx ...
Collaxd's user avatar
  • 517
0 votes
0 answers
25 views

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. How to fix this behaviour. <Tabs ...
Vinit P. Jain's user avatar
0 votes
0 answers
68 views

Cannot read property 'style' of undefined on Expo using react-native-snap-carousel

I'm encountering an error while using the react-native-snap-carousel library in my Expo project. The error message is: Cannot read property 'style' of undefined. This is Error message I tried the ...
Santosh Tiwari's user avatar
1 vote
0 answers
94 views

How to redirect expo router to a folder in app load (for logged in users)

In my React Native app I use Expo routing and with the global session management, I have the below _layout.tsx file which simply checks if the user is logged in, then redirect to other folders if not, ...
Alicia's user avatar
  • 19
-1 votes
0 answers
25 views

Image is not showing even when uri is provided

I am making a react native app with expo router and I want to send my image uploaded by user from one screen to another. I have tried to send it using router params but image is not showing in in ...
114_Darshan Shah's user avatar
0 votes
1 answer
40 views

Save button in expo-router header

I am new to react native and am trying to hook up a save button in a modal header using expo-router. I can get the button to do what I need in the modal itself, but I would like this to be in the ...
Jand's user avatar
  • 434
0 votes
1 answer
56 views

back button with universal links and expo router

The issue When I use a universal link to direct my user into a nested screen in my expo app, it works fine. But my screens in expo router each have a back button which execute router.back() when ...
Andrew Einhorn's user avatar
0 votes
0 answers
104 views

Unmatched Route with expo router

I'm building a React Native App with Expo-router. Everything was working fine until I decided to add a login with JWT. I cannot access to my app anymore, i have an Unmatched Route error. So before i ...
Tetex Corp's user avatar
0 votes
0 answers
26 views

expo router tab icon that is a route only (not a screen)

I have 2 groups of screens (home) and (profile) (home) _layout.tsx index.tsx chat.tsx camera.tsx next.tsx (don't want this screen) (profile) _layout.tsx profile.tsx hidden.tsx ... ...
Dustin Butler's user avatar

15 30 50 per page
1
2 3 4 5
16