Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with bottom and header navbar with expo #61

Closed
daniakbar opened this issue Sep 9, 2019 · 6 comments
Closed

Problem with bottom and header navbar with expo #61

daniakbar opened this issue Sep 9, 2019 · 6 comments
Labels
❔ Question Further information is requested

Comments

@daniakbar
Copy link

daniakbar commented Sep 9, 2019

Screenshot_20190909_194159
i want to show the modal on top navbar, i have to try with zIndex at but not working,...please help how to fix it, thnks🙂

update : done! with top bar, with change the modal render position , but bottom navbar stil on top

@Trashpants
Copy link

Bump to this im also having the same error using react-navigation.

Ive spent a while looking at the react-navigation example however I absolutely cannot understand how react navigation is applied at app in the project?

The only way around this I can think of right now is to apply the modalize window at root level with AppContainer and then attempt to inject and alter it however this seems ridiculously messy

@hirbod
Copy link

hirbod commented Sep 29, 2019

adding prop withReactModal is what you need, but it breaks the swipe gestures on android unfortunately, but works great on iOS

@jeremybarbet
Copy link
Owner

Hi!

Yes, you can use withReactModal but as @hirbod it breaks the gestures on android, which is a known issue from react-native and react-native-gesture-handler.

Another solution, is to create a Modal provider with Modalize on it and add it to the root of your app. Then on the screen you need have the modal you call your context to toggle it.

@jeremybarbet jeremybarbet added the ❔ Question Further information is requested label Oct 1, 2019
@ardyfeb
Copy link

ardyfeb commented Nov 25, 2019

@daniakbar you probably need https://www.npmjs.com/package/react-native-portal to render modalize on root component

@minayaleon
Copy link

minayaleon commented Dec 11, 2019

For Android, you can use this
shadowRadius: 8, borderRadius: 8, ...Platform.select({ android: { elevation: 0, }, }),

@jeremybarbet
Copy link
Owner

I will close that due to inactivity. A provider to open Modalize from a root parent would be the best approach. If nobody opens a PR, I will try to do it when I find free time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ Question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants