react-native-screens

JavaScript
// 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();yarn add react-native-screens
Source

Also in JavaScript: