react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

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

Open truongduyng opened this issue 6 years ago • 5 comments

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

truongduyng avatar May 03 '20 03:05 truongduyng

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.

guyca avatar May 03 '20 10:05 guyca

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

truongduyng avatar May 03 '20 15:05 truongduyng

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

hamoudaarfaoui avatar May 06 '20 13:05 hamoudaarfaoui

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 !

guyca avatar May 07 '20 04:05 guyca

Closing this as part of a maintainer cleanup of open issues older than one year.

Decision: Closed: stale report tied to older unsupported versions.

If this still reproduces on the latest React Native Navigation with a minimal reproduction, please open a new issue with current RN/RNN versions and repro steps.

yedidyak avatar Jun 02 '26 11:06 yedidyak