Hello, thanks for the work, I'm having a good time with your library!
Currently I'm trying to use scrollToIndex()https://reactnative.dev/docs/flatlist#scrolltoindex
but the problem is that the ref is not being defined. Here's what's I'm trying to do inside a component:
Can you try printing flatlistRef.current in useEffect? It'll be initialised only after FlatList is mounted. Let me know if still face issues. Ref should be accessible as we're forwarding it.
Hello, thanks for the work, I'm having a good time with your library! Currently I'm trying to use
scrollToIndex()
https://reactnative.dev/docs/flatlist#scrolltoindex but the problem is that the ref is not being defined. Here's what's I'm trying to do inside a component:but unfortunately
flatList.current
shows as stillnull
in theconsole.log