switch to useSafeAreaInsets().top (#85)

StatusBar.currentHeight seems just broken on some devices
This commit is contained in:
austinried
2022-04-04 12:48:10 +09:00
committed by GitHub
parent 8bc4caae78
commit caf544069e
9 changed files with 49 additions and 51 deletions

View File

@@ -1,14 +1,10 @@
import { StatusBar } from 'react-native'
const header = 56
const tabBar = 54
const top = () => header + (StatusBar.currentHeight || 0)
const bottom = () => tabBar
export default {
header,
tabBar,
top,
bottom,
}