@applicaster/zapp-react-native-utils
Version:
Applicaster Zapp React Native utilities package
15 lines (12 loc) • 325 B
text/typescript
import { Dimensions } from "react-native";
import { Context } from "../../types";
/**
* Returns initial dimension
*
* @param context - window or screen
* @returns Value for the dimension
*/
export const getInitialDimensions = (context: Context) => {
const dimension = Dimensions.get(context);
return dimension;
};