react-native-global-size is a small library that provides simple methods so that React Native developers can code their UI elements fully responsive .
https://www.npmjs.com/package/react-native-global-size
import {GLobalSize} from 'react-native-global-size'
Here the first argument indicates the size of the component you want, and the second argument is the reference height of the screen. Bascially the reference height is your app screen height as per the design.