React-native-modal: web support ?

Created on 27 Aug 2019  路  4Comments  路  Source: react-native-modal/react-native-modal

not sure if this should be put in expo issues or here but when building for web, the modal works partly:
https://web-build-emy6a8m2f.now.sh

normally it shouldn't show by default (because isVisible is false at first)

question

Most helpful comment

FYI [email protected] now supports Modal. Currently testing this lib for web, and everything is working well from what I can tell so far.

All 4 comments

This repo depends on the native React-Modal for the modal itself.
It seems on the web, react-native-web uses it's own modal component, so I believe this shouldn't work.

I am trying to use with react-native-web.
It works when modal needs to be displayed 'within' a particular component (eg within scroll view).
However, when I need modal to cover the whole screen within the browser, it does not work and instead is resized to be confined within parent's view dimention.

coverScreen setting does not seem to do anything

@rewieer react-native-web does not implement the Modal component, but there are interesting discussions here and here.

FYI [email protected] now supports Modal. Currently testing this lib for web, and everything is working well from what I can tell so far.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stonepreston picture stonepreston  路  4Comments

TaraSinghDanu picture TaraSinghDanu  路  3Comments

HoaiHuynh picture HoaiHuynh  路  3Comments

ShaikhKabeer picture ShaikhKabeer  路  3Comments

RWOverdijk picture RWOverdijk  路  4Comments