Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property '_currentElement' of null #19

Open
burgalon opened this issue Apr 29, 2016 · 5 comments
Open

TypeError: Cannot read property '_currentElement' of null #19

burgalon opened this issue Apr 29, 2016 · 5 comments

Comments

@burgalon
Copy link

burgalon commented Apr 29, 2016

_container is not set at the time of the call... Using react-native-smart-scroll-view 1.3.5 and RN 0.24.1

image

@nikhilaravi
Copy link
Owner

@burgalon sorry for the late reply! did you manage to get this working? let us know and @jrans and I can take a look!

@idajimenez
Copy link

idajimenez commented May 20, 2016

@nikhilaravi I also encountered this error. May I know how can I fix it? Thanks

@pietgk
Copy link

pietgk commented May 24, 2016

i noticed this error when using functions as component, resolved it by going back to using components that extend from component.

@nikhilaravi
Copy link
Owner

@pietgk thanks for the note - do you mean functional components? That could be an issue as according to the React spec

Since no component instance is created for a functional component, any ref added to one will evaluate > to null.

and _container is added as a ref.

@idajimenez did you manage to resolve the issue?

@pietgk
Copy link

pietgk commented Jun 4, 2016

I changed from this component to react-native-keyboard-aware-scroll-view
its simpler and does enough for me.

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

No branches or pull requests

4 participants