'(React Native iOS) - Scroll to top when tapping on status bar
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
