Fix regression in StyleSheet.setStyleAttributePreprocessor (#22262)

Summary:
This regression was caused by 199c918 - property values are initialized to true rather than a string that matches the property name now.
Pull Request resolved: https://github.com/facebook/react-native/pull/22262

Differential Revision: D13048839

Pulled By: hramos

fbshipit-source-id: 09471334c37f3930aae7e35066943f33f8e617e5
This commit is contained in:
Brent Vatne 2018-11-13 23:31:17 -08:00 committed by Facebook Github Bot
parent 2e465bca15
commit 04085337bc
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ module.exports = {
) {
let value;
if (typeof ReactNativeStyleAttributes[property] === 'string') {
if (ReactNativeStyleAttributes[property] === true) {
value = {};
} else if (typeof ReactNativeStyleAttributes[property] === 'object') {
value = ReactNativeStyleAttributes[property];