RealOrangeOne/react-native-mock

Missing support for percentage widths

Open

#135 ouverte le 24 mai 2017

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)JavaScript (151 forks)github user discovery
BugCompatabilityhelp wanted

Métriques du dépôt

Stars
 (567 stars)
Métriques de merge PR
 (Métriques PR en attente)

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`.

Guide contributeur