Nothing special just two helper functions that use Dimensions API
getWindowDimensions
getScreenDimensions
These functions return an object with the next properties:
width: number;
height: number;
scale: number;
fontScale: number;
Example:
import { makeUseStyles } from "react-native-stylex";
import { getWindowDimensions } from "react-native-stylex/dimensions";
export const useStyles = makeUseStyles(() => ({
video: {
width: getWindowDimensions().width,
height: getWindowDimensions().width,
},
}));