I have a ScrollView that I would like to vertically center. There are two requirements: when the ScrollView is small (one text line), that line should be in the center of screen. When the ScrollView is large (exceeds the screen size), it should function as a normal ScrollView. I can seemingly only get one or the other to work.
<SafeAreaView style={{flex: 1}}>
<Pressable style={flex: 1, justifyContent: 'center'}>
<Pressable>
<ScrollView />
</Pressable>
</Pressable>
</SafeAreaView>