mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
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:
committed by
Facebook Github Bot
parent
2e465bca15
commit
04085337bc
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user