My code is the following:
<ScrollView style={styles.scrollView}>
<RefreshControl
refreshing={refreshing}
onRefresh={onRefresh}
/>
<Text>
{"\n"}
</Text>
<FlatList
data={data}
keyExtractor={({ id }, index) => id}
renderItem={({ item }) => <Item item={item} />}
/>
<Text style={{ textAlign: "center", color: "white", fontSize: 24, fontFamily: 'Montserrat_600SemiBold' }}>
Hi there!
{"\n"}
{"\n"}
</Text>
</ScrollView>
It displays a FlatList within a ScrollView. I want the ScrollView to go back to the top when the user taps on the status bar on an iOS device.