Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use with Expo Router? #21

Closed Unanswered
fredrikburmester asked this question in Q&A
Discussion options

As the title says, how would I use this with Expo Router? How to work with layouts and pages? Thanks!

You must be logged in to vote

Replies: 2 comments 5 replies

Comment options

You can find instructions here:

https://x.com/baconbrix/status/1843654478232531395?s=46&t=D61Tja_PFq4BVo_6xmK5bQ

Here is the link to Example Repo:

https://github.com/EvanBacon/expo-router-react-native-bottom-tabs

It should land in the docs soon

You must be logged in to vote
2 replies
Comment options

Hey, thanks for the quick answer, it seems to work somewhat (see image below),

  1. How do i fill the screen, so it goes up behind the status bar?

Simulator Screenshot - iPhone 16 Pro - 2024年10月08日 at 21 01 26

  1. I don't know if this is related but i get this type error and therefore no completions.

Screenshot 2024年10月08日 at 20 43 16

Comment options

Hey #23 this PR should fix types issues

Comment options

Are you using the latest version (0.0.7)? It should have correct typings.

What's your structure to embed the top bar? Can you provide a minimal reproducible example? Probably we will need a prop like ignoreSafeAreaInsets

You must be logged in to vote
3 replies
Comment options

Yes i'm using 0.0.7.

No I don't have a MRE, could try to produce one later this week though if you still need it.

Comment options

Ok so I used your example in the PR instad of Evans and now I have the types in the NativeTab, but still got the typescript error in vscode.

Comment options

There are also some wrong types in the tabBarIcon:
Screenshot 2024年10月08日 at 22 09 54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /