RealOrangeOne/react-native-mock

Missing support for percentage widths

Open

#135 opened on May 24, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (151 forks)github user discovery
BugCompatabilityhelp wanted

Repository metrics

Stars
 (567 stars)
PR merge metrics
 (PR metrics pending)

Description

React Native has recently added support for percentage widths.

Tests now fail props validation if a react-native-mock component is passed a percentage width string instead of a number:

Error: Warning: Failed prop type: Invalid prop `style.width` of type `string` supplied to `View`, expected `number`.

Contributor guide