Measuring Distance from the Floor in Expo/React Native

I’m currently working on a project in Expo/React Native and need to create a control that will indicate whether the distance from the floor is appropriate—it can’t be too large or too small. Does anyone know how to measure the distance from the floor within these frameworks? Any pointers or tips would be greatly appreciated!