Open
Description
Now that react-native-screens
has an overlay view that allows multiple overlays on iOS (and in the future Android), it would be great if this lib exposed a way to pass a custom Modal
component. I envision something roughly like this:
const CustomModal = (props) => {
if (Platform.OS !== 'ios') {
return <Modal {...props} />
}
const { visible, children } = props
return <OverlayView style={StyleSheet.absoluteFill}>{visible && children}</OverlayView>
}
return <Popover Modal={CustomModal} />
Even better, what if this library had a plugin, like react-native-popper/window
, such that all you had to do is this:
import { WindowOverlay } from 'react-native-popper/window'
<Popover Modal={WindowOverlay} />
This way, only users of react-native-popper/window
need to install react-native-screens
.
Metadata
Metadata
Assignees
Labels
No labels