react-navigation icon indicating copy to clipboard operation
react-navigation copied to clipboard

createNativeStackNavigator does not include StatusBar height padding Android

Open wainage opened this issue 6 years ago • 3 comments

On Android only, the following calls have different rending results

createNativeStackNavigator()

createNativeStackNavigator

createStackNavigator()

createStackNavigator

Images were from the Pixel 2 emulator but I was able to replicate the issue on a OnePlus 7 Pro.

Performance for createNativeStackNavigator() is phenomenal!

Environment

App is identical except for the following 2 lines

const Stack = createNativeStackNavigator<RootParamList>();
// const Stack = createStackNavigator<RootParamList>();
software version
@react-navigation/core 5.0.0-alpha.27
@react-navigation/native 5.0.0-alpha.17
@react-navigation/native-stack 5.0.0-alpha.15
@react-navigation/stack 5.0.0-alpha.42
react-native expo sdk-36.0.0
@react-native-community/masked-view 0.1.5
expo 36.0.0
node 12.10.0
npm or yarn 1.19.1

wainage avatar Dec 10 '19 19:12 wainage

The issue happens because Expo includes an older version of react-native-screens which has this bug. So Expo will either need to update it, or you can temporarily eject until Expo releases new version of the SDK.

satya164 avatar Dec 30 '19 21:12 satya164

@satya164 Good to know since the performance is outstanding.

wainage avatar Dec 31 '19 15:12 wainage

This is still happening with react-native-screens 2.0.0-alpha.29 without expo, any thoughts ?

orkanylmz avatar Jan 25 '20 14:01 orkanylmz