enesozturk / rn-swipeable-panel

Zero dependency swipeable bottom panel for React Native 📱
MIT License
970 stars 143 forks source link

Does it work with WebView? #137

Open tomgiam opened 1 year ago

tomgiam commented 1 year ago

I can't get it to work with WebView. Is that possible?

import { WebView } from "react-native-webview";
panelProps: {
    fullWidth: true,
    openLarge: false,
    showCloseButton: true,
    allowTouchOutside: true,
    onClose: () => this.closePanel(),
    onPressCloseButton: () => this.closePanel()
},
<SwipeablePanel {...this.state.panelProps} isActive={this.state.isPanelActive}>
        <View style={{ height: "100%", width: "100%" }}>
              <WebView source={{ html: this.state.PanelHtml }} />
       </View>
 </SwipeablePanel>