I have this exact issue as well. Only on Android, not on iOS.
you have to substract StatusBar.currentHeight (https://facebook.github.io/react-native/docs/statusbar.html#constants) on Android to adjust to the correct height
Thanks @wizza-smile! This was exactly what I needed. I had hardcoded a value before but it felt really unsafe.
This is my implementation
selector: {
...Platform.select({
android: {paddingBottom: StatusBar.currentHeight},
}),
},
Thank you! ;)
Most helpful comment
you have to substract StatusBar.currentHeight (https://facebook.github.io/react-native/docs/statusbar.html#constants) on Android to adjust to the correct height