Relative Content

Tag Archive for reactjsreact-nativeexporeact-navigationexpo-router

Is there a way to not start at index.js using Expo Router?

My application is running on Expo using Expo Router. I have an app folder containing a (tabs) folder which has a few pages I am using for the tab bar, including a home.jsx page. The app folder also has an index.jsx file and a _layout.jsx. When the application opens, I want the user to be at app/(tabs)/home.jsx, but I’ve read that you automatically start at index.jsx first, so I put redirect there to app/(tabs)/home.jsx. While this works, it briefly shows an animation swapping from the index.jsx page to home. Is there a way to only load the app once it is on the home page? I don’t like having this animation for the user.

Is there a way to not start at index.js using Expo Router?

My application is running on Expo using Expo Router. I have an app folder containing a (tabs) folder which has a few pages I am using for the tab bar, including a home.jsx page. The app folder also has an index.jsx file and a _layout.jsx. When the application opens, I want the user to be at app/(tabs)/home.jsx, but I’ve read that you automatically start at index.jsx first, so I put redirect there to app/(tabs)/home.jsx. While this works, it briefly shows an animation swapping from the index.jsx page to home. Is there a way to only load the app once it is on the home page? I don’t like having this animation for the user.

Screens not stacking correctly in expo-router

Being a beginner with ReactJS trying to build a react-native app, I saw that expo was a good option to go about it. But for some reason, I can’t figure out a good way to use expo-router from the documentation.