Skip to content

Commit 0408533

Browse files
brentvatnefacebook-github-bot
authored andcommitted
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: #22262 Differential Revision: D13048839 Pulled By: hramos fbshipit-source-id: 09471334c37f3930aae7e35066943f33f8e617e5
1 parent 2e465bc commit 0408533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Libraries/StyleSheet/StyleSheet.js

+1-1
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)