Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6295

react native detect webview scroll to bottom

$
0
0

I am loading html to webview.

Trying to detect all the content is loaded and it is scrolled till bottom.trying to implement T&C screen in mobile app.

Below is the code i tried

<WebView          style={{flex: 1}}          originWhitelist={['*']}          source={{uri: 'https://google.com'}}           javaScriptEnabled={true}          domStorageEnabled={true}          startInLoadingState={false}          onLoadEnd={() => this.setState({isButtonEnabled: true})}          scalesPageToFit={true}          scrollEnabled={false}        />

also try to do this: but onscroll is not giving proper on bottom offset

<ScrollView onScroll={this.handleScroll}><WebView            originWhitelist={['*']}            source={{uri: 'https://www.google.com'}}           /></ScrollView>

Viewing all articles
Browse latest Browse all 6295

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>