import React from "react" import { View, Text, StyleSheet, Platform } from "react-native"; import { useSafeAreaInsets } from "react-native-safe-area-context"; /* import { getStatusBarHeight } from 'react-native-status-bar-height'; function topBarTopDistance(){ if(Platform.OS === 'ios'){ return{ paddingTop : getStatusBarHeight(), paddingBottom : getStatusBarHeight()/2.5, } } return{ paddingTop : 20, flex: 0.15, } } */ export function TopBar(){ const insets = useSafeAreaInsets(); const statusBarHeight = insets.top; return ( La Super Météo ); } const TopBarStyle = StyleSheet.create({ title : { fontSize : 30, fontWeigh : 'bold', color : '#B6D0E2' } });