React Native – Value of type NSString cannot be converted to a ABI44_0_0YGValue

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.

Leave a Comment

Your email address will not be published.

Scroll to Top