Open 404-html opened 2 years ago
as a workaround you can use SaveAreaView in the HeaderComponent
renderHeaderComponent={() => (
<SafeAreaView>
<View
style={{
height: 100,
width: '100%',
}}>
<Button onPress={closeGallery} icon="close" mode="contained">
schließen
</Button>
</View>
</SafeAreaView>
)}
Screenshot below shows phone with the notch and gallery running with header defined. Whole app is wrapped into SafeAreaView and
renderHeaderComponent
goes off.Here's header component from the screenshot: