Thanks for this superb lib. I think I might have something setup wrong or perhaps there's a bug but I'm receiving a "can't find ... variable" error periodically when loading the app in development mode.
Below is how I'm integrating safearea in my components/screens. Let me know if there's something wrong with it.
import { SafeArea } from 'react-native-safe-area';
class SomethingScreen extends React.Component {
async getSafeAreaInsets() {
const safeAreaInsets = await SafeArea.getSafeAreaInsetsForRootView()
topSafeArea = Platform.OS === 'ios' ? safeAreaInsets.top : 0
bottomSafeArea = Platform.OS === 'ios' ? safeAreaInsets.bottom + 13 : 0
}
}
Thanks for this superb lib. I think I might have something setup wrong or perhaps there's a bug but I'm receiving a "can't find ... variable" error periodically when loading the app in development mode.
Below is how I'm integrating safearea in my components/screens. Let me know if there's something wrong with it.