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 facebook-github-bot committed Nov 14, 2018
1 parent 2e465bc commit 0408533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/StyleSheet/StyleSheet.js
Original file line number Diff line number Diff line change
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 0408533

Please sign in to comment.