Mahdi Bashirpour
Mahdi Bashirpour

Reputation: 18803

onPull React Native ScrollView

Or in other words

For example

 <ScrollView
      scrollEnabled={this.state.scrollEnabled}
      onScroll={(y) => {
          if (y.nativeEvent.contentOffset.y <= 0 ) {
               // 
           }

Upvotes: 0

Views: 121

Answers (1)

vonovak
vonovak

Reputation: 1597

I'm not completely sure what you're trying to achieve, but I think you're looking for the refreshControl prop.

See the docs: https://facebook.github.io/react-native/docs/scrollview#refreshcontrol

Upvotes: 1

Related Questions