Skip to content

Commit 576e65a

Browse files
brentvatnefacebook-github-bot
authored andcommitted
Fix regression in StyleSheet.setStyleAttributePreprocessor (facebook#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: facebook#22262 Differential Revision: D13048839 Pulled By: hramos fbshipit-source-id: 09471334c37f3930aae7e35066943f33f8e617e5
1 parent fbd57df commit 576e65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/StyleSheet/StyleSheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ module.exports = {
339339
) {
340340
let value;
341341

342-
if (typeof ReactNativeStyleAttributes[property] === 'string') {
342+
if (ReactNativeStyleAttributes[property] === true) {
343343
value = {};
344344
} else if (typeof ReactNativeStyleAttributes[property] === 'object') {
345345
value = ReactNativeStyleAttributes[property];

0 commit comments

Comments
 (0)