react native screa code example
Example: useScreens() react native
// install react native screens
npm i react-native-screens
// import
import { enableScreens } from 'react-native-screens';
// run this before any screen render(usually in App.js)
enableScreens();