Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

'container.contentOffset={x:x,y:y}' is null #31

Open
alameddinc opened this issue Aug 12, 2017 · 1 comment
Open

'container.contentOffset={x:x,y:y}' is null #31

alameddinc opened this issue Aug 12, 2017 · 1 comment

Comments

@alameddinc
Copy link

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}')

@saigyouyou
Copy link

saigyouyou commented Dec 7, 2017

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants