react-native-modalbox
react-native-modalbox copied to clipboard
can i use this lib with react-native-web
hi @maxs15 , thanks for your great work.
i try use this library with react-native-web,
when coverScreen={false}
everything is good,
i change it to true
, the modal not cover the screen but side by side the parent screen.
could you tell me how to fix this?
@geminiyellow How did you get it to work? I tried modalbox with react-native-web, this error occured
SyntaxError: ...\node_modules\react-native-modalbox\index.js: Unexpected token (427:8)
425 | if (this.props.backdrop) {
426 | backdrop = (
> 427 | <TouchableWithoutFeedback onPress={this.props.backdropPressToClose ? this.close : null}>
| ^
428 | <Animated.View importantForAccessibility="no" style={[styles.absolute, {opacity: this.state.backdropOpacity}]}>
429 | <View style={[styles.absolute, {backgroundColor:this.props.backdropColor, opacity: this.props.backdropOpacity}]}/>
430 | {this.props.backdropContent || []}
@serfgy sorry i dont know, but Unexpected token
may cause by babel loader or your babel stage is too low. you can try https://github.com/VISI-ONE/create-react-native-web-app this.