react-native-lazyload
react-native-lazyload copied to clipboard
'container.contentOffset={x:x,y:y}' is null
if I push one page after another page then I want to pop first page (first page have lazyload) then have a problem. it is
[error][tid:com.facebook.react.JavaScript] null is not an object (evaluating 'container.contentOffset={x:x,y:y}') 2017-08-13 00:21:21.290 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: null is not an object (evaluating 'container.contentOffset={x:x,y:y}')
@alameddince The reason is when you unmount the second page, lazyloadManage will set the container to null, however if the name of lazyloadScrollView in your second page is the same with the first page, when you return, the container in the first page will be null.
I encount the same problem, and I am now trying to solve it. A simple way is add a timestamp tail behind your scrollView name