Closed midoushitongtong closed 3 years ago
hi I want to use some api on <FlatList />, like scrollToIndex, but I can't get the ref correctly.
<FlatList />
scrollToIndex
<Animated.FlatList ref={this.flatListRef} {...scenePropsAndRef} /> componentDidMount() { setTimeout(() => { console.log(this.flatListRef.current); // null }, 3000); }
What might I have missed?
Hi @midoushitongtong it's a duplicate of #2
hi I want to use some api on
<FlatList />
, likescrollToIndex
, but I can't get the ref correctly.What might I have missed?