Open yogendrajs opened 2 years ago
Try something like this:
`const [tabIndex, setTabIndex] = useState
React.useEffect(() => { setIsRefreshing(true) after fetching data setIsRefreshing(false) }, [tabIndex]);
<ScrollableTabView ... onChangeTab={(value) => { setTabIndex(value.i); }} ...`
I want to know if there's a way to refresh the component on every tab change because componentDidMount doesn't re-invoke when we return to the rendered/previous tab (as it's already in the stack)