Structure
ScreenContainer.js
|
|---Header.js
| |---LogoButton.js
|
|----FeedContainer.js
|---Feed.js
I have a FlatList
in Feed.js
I want to scrollToOffset()
the Feed
, when LogoButton is Clicked.
The ref
of FlatList
exists only in Feed.js
How do I invoke a Feed.js
Method from the LogoButton.js
?
EDIT : I tried storing the ref
in Redux, but it caused Multiple event dispatches and undefined
errors