简体   繁体   中英

React Native Navigation - Nested Navigator with Overlay

I'm having a bit of a rough time figuring out how to structure my project. I have this MiniPlayer (see 2. pic) that I would like to overlay over all other screens whenever a song is playing. So far I solved it this way:

在此处输入图片说明

However, adding it like that I can't find a way to navigate from it to another screen since it's not part of any navigator. And I can't really add it to any of the navigators I have. If I add it to the TabsNav I get an additional tab that I don't want, if I add it to the stack, it's hidden when I open another tab. Can anyone give me a hint on how to move forward here or what I'm overlooking? Thanks a lot in advance :)

在此处输入图片说明

I think one way to implement this would be using the tabBar prop. link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM