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

[V6] Overlay doesn't display over modal from react-native-modal on Android #6185

Open
truongduyng opened this issue May 3, 2020 · 4 comments

Comments

@truongduyng
Copy link

Issue Description

Overlay doesn't display over modal from react-native-modal on Android. On iOS, it works well.

Steps to Reproduce / Code Snippets / Screenshots

Try to show an overlay when opening a modal. It does shows but behind the modal.


Environment

  • React Native Navigation version: 6.4
  • React Native version: 0.62.2
  • React Native Modal version: 11.5.6
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator - Android 9 and 10 (API 28 & 29) - Both on debug and release
@guyca
Copy link
Collaborator

guyca commented May 3, 2020

Hey @truongduyng
RNN doesn't play well with React Native's modals. Last time I checked, RN Modals are shown in a dialog. If this is still the case it might be tricky to resolve this as Overlays are added to the Activity window while Dialogs use their own Window.

@truongduyng
Copy link
Author

hi @guyca
Thank for explaining. I think it is still the case. I have tried several things. Only the Android platform's ToastAndroid can display over but it doesn't support custom styles for now. So I think I need to have a overlay/toast component in my modal

@hamoudaarfaoui
Copy link

@guyca i still cant show a simple alert over a RNN overlay ! any solutions ?

@guyca
Copy link
Collaborator

guyca commented May 7, 2020

Hey @hamoudaarfaoui, if you're referring to iOS alert then I believe there's already an issue about this ! This issue is about displaying Overlay on top of react native Modal !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants