react-native-smart-scroll-view icon indicating copy to clipboard operation
react-native-smart-scroll-view copied to clipboard

TypeError: Cannot read property '_currentElement' of null

Open burgalon opened this issue 8 years ago • 5 comments

_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

burgalon avatar Apr 29 '16 20:04 burgalon

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

nikhilaravi avatar May 18 '16 17:05 nikhilaravi

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

idajimenez avatar May 20 '16 03:05 idajimenez

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

pietgk avatar May 24 '16 13:05 pietgk

@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?

nikhilaravi avatar Jun 03 '16 16:06 nikhilaravi

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

pietgk avatar Jun 04 '16 09:06 pietgk