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

can i use this lib with react-native-web

Open geminiyellow opened this issue 6 years ago • 2 comments

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 avatar Oct 22 '18 09:10 geminiyellow

@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 avatar Jan 16 '19 03:01 serfgy

@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.

geminiyellow avatar Jan 16 '19 04:01 geminiyellow