All dimensions in React Native are unitless, and represent density-independent pixels.
In other words, the error is being thrown because React Native is looking for a Number type, not a string. Unlike CSS for the web, the “vh” and “px” suffixes are meaningless here.
Try:
height: 90,
width: Dimensions.get('window').width,
CLICK HERE to find out more related problems solutions.