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

Display overlay on top of default modal from react-native

Open ghost opened this issue 7 years ago • 5 comments

Issue Description

I am using default react native Modal to show a screen and depending from some user interaction i am trying to show overlay, but its getting displayed under the modal, which i verified by dismissing the modal immediately and overlay was visible.

Is it even possible to show overlay on top of Modal ?

Steps to Reproduce / Code Snippets / Screenshots

`import React, { Component } from 'react' import { View, Text, Modal, } from 'react-native' import { Navigation } from 'react-native-navigation'

class App extends Component { constructor(props) { super(props) }

showSnackbar = (msg, type = 'info') => { Navigation.showOverlay({ component: { name: 'streak.toast', passProps: { msg, type, }, options: { overlay: { interceptTouchOutside: false, }, }, }, }) }

render() { const { isVisible } = this.state return ( <Modal animationType="slide" transparent={false} visible={isVisible} onRequestClose={() => this.togglePopup('isVisible')} > <Add showSnackbar={(msg, type) => this.showSnackbar(msg, type)} /> ) } }

class Add extends Component { componentDidMount = () => { this.props.showSnackbar('Hello from snackbar', 'success') this.showSnackbar('Hello from snackbar', 'success') }

showSnackbar = (msg, type = 'info') => { Navigation.showOverlay({ component: { name: 'streak.toast', passProps: { msg, type, }, options: { overlay: { interceptTouchOutside: false, }, }, }, }) }

render() { return ( Hello ) } }`


Environment

  • React Native Navigation version: 2.13.1
  • React Native version: 0.59.1
  • Platform(s) (iOS, Android, or both?): both
  • Device info (Simulator/Device? OS version? Debug/Release?): Device, both

ghost avatar Mar 19 '19 13:03 ghost

i'm also sample issues. I hope who help me. Thank you

minhx3 avatar Mar 21 '19 07:03 minhx3

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Apr 20 '19 07:04 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Apr 27 '19 07:04 stale[bot]

I am facing this similar issue! @sja1n did you find any solution for this ? :|

tarun-khanna avatar Aug 09 '19 07:08 tarun-khanna

Same Issue @guyca

rf1804 avatar Jun 13 '21 11:06 rf1804