Skip to content

Commit

Permalink
Fix regression in StyleSheet.setStyleAttributePreprocessor (#22262)
Browse files Browse the repository at this point in the history
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: #22262

Differential Revision: D13048839

Pulled By: hramos

fbshipit-source-id: 09471334c37f3930aae7e35066943f33f8e617e5
  • Loading branch information
brentvatne authored and kelset committed Nov 26, 2018
1 parent 6e7576b commit 5ba44f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/StyleSheet/StyleSheet.js
Expand Up @@ -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];
Expand Down

0 comments on commit 5ba44f7

Please sign in to comment.