React native – I want to use useSafeAreaInsets in the expo to get the paddingbottom, but I get an error
import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-context'; import * as SplashScreen from 'expo-splash-screen'; SplashScreen.preventAutoHideAsync(); export default function App() { const insets = useSafeAreaInsets(); return ( <SafeAreaProvider> <View style={{ flex: 1, }}> <WebView ... /> </View> </SafeAreaProvider> ); An error occurs.…