chore: unwrap value when validating props

This commit is contained in:
Evan You 2018-10-02 18:31:38 -04:00
parent 2241ad7765
commit 66ad46ad7a

View File

@ -135,7 +135,7 @@ export function resolveProps(
} }
// runtime validation // runtime validation
if (__DEV__) { if (__DEV__) {
validateProp(key, rawData[key], opt, Component, isAbsent) validateProp(key, unwrap(rawData[key]), opt, Component, isAbsent)
} }
} }
} }