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

decide which file to use at compile time - allows for web support

Open EyMaddis opened this issue 7 years ago • 4 comments

The dependencies were resolved at runtime, not at build time. This leads to ActionSheetIOS getting loaded on all platforms, avoiding this allows for the use of react-native-web.

EyMaddis avatar Aug 27 '18 12:08 EyMaddis

Can we revive this and hopefully get this in?

ziaulrehman40 avatar Jul 29 '19 10:07 ziaulrehman40

I tried testing on web. It looks like ActionSheetCustom uses modal and react native web doesn't support modal. Need a different solution for now to support web.

smithydll avatar Oct 23 '19 13:10 smithydll

@smithydll You can use this to enable modals: https://github.com/necolas/react-native-web/issues/1020#issuecomment-416227930

EyMaddis avatar Oct 23 '19 13:10 EyMaddis

Calling @xiaoyann :)

EyMaddis avatar Oct 23 '19 13:10 EyMaddis