mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 23:02:43 +01:00
switch to useSafeAreaInsets().top (#85)
StatusBar.currentHeight seems just broken on some devices
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user