React Native Get Device Height Width on Button. This tutorial explains how to get device width and height on button click in react native application. In react we are having default class that is Dimensions, which is a part of "react-native" package. This dimension class helps to detect android or ios device screen width and height in very easy way.