import {NativeModules} from 'react-native';
const {StatusBarManager} = NativeModules;
const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : StatusBarManager.HEIGHT;
//Import StatusBar from React-native, not expo
//unless you will import it as something else
import {
StyleSheet,
Text,
View,
Dimensions,
StatusBar,
} from "react-native";
//You can display the height of the device StatusBar on your react-native app:
export default function App() {
return (
<View>
<Text>
{StatusBar.currentHeight}
</Text>
</View>
);
}