mirror of
https://github.com/status-im/react-native.git
synced 2025-02-20 13:18:07 +00: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:
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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user