npm install react-native-safe-area-context
npx pod-install ios
//add SafeAreaProvider to the app
import { SafeAreaProvider } from 'react-native-safe-area-context';
function App() {
return <SafeAreaProvider>...</SafeAreaProvider>;
}
cd ios && pod install