react-native-ptr-control icon indicating copy to clipboard operation
react-native-ptr-control copied to clipboard

[ BUG] null is not an object (evaluating 's._scrollView.setNativeProps')

Open hamam99 opened this issue 5 years ago • 0 comments

We encounter error on android device and cause some force close. Because null is not an object (evaluating 's._scrollView.setNativeProps'). The error messages are come from bugsnag.

This is our code.

 <PTRControl
          setHeaderHeight={64}
          pullFriction={0.75}
          showsVerticalScrollIndicator={false}
          scrollComponent={'ScrollView'}
          enableFooterInfinite={false}
          renderHeaderRefresh={(gestureStatus, offset) => <CustomRefreshControl isRefreshing={gestureStatus === 4} />}
          onHeaderRefreshing={() => this.pullToRefreshLoadData()}
        >

Stack trace error from bugsnag

TypeError null is not an object (evaluating 's._scrollView.setNativeProps') 
    node_modules/react-native-ptr-control/lib/PTRScrollList.android.js:271:27 
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:152:6 _callTimer
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:414:17 callTimers
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:366:47 value
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:106:26 
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:314:8 value
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:105:17 value
    [native code] value

hamam99 avatar Jul 06 '20 02:07 hamam99