How can I find the height of the status bar on Android through React Native?
If I check the React.Dimensions height the value seems to include the status ba
React.Dimensions
You don't need any plugins for this (anymore), just use StatusBar.currentHeight:
StatusBar.currentHeight
import {StatusBar} from 'react-native'; console.log('statusBarHeight: ', StatusBar.currentHeight);
EDIT: Apparently this does seem to work on Android always, but on iOS, initially undefined is indeed returned :(
undefined