In react native application, to set the dimensions of a component, we use width and height properties . Remember, all the values of dimensions are unitless like we can’t use height: 20px to set the height of a component instead of we just use height: 20 and react-native automatically set the pixels.