-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix regression in StyleSheet.setStyleAttributePreprocessor #22262
Conversation
…199c918 Property values are initialized to true rather than a string that matches the property name now.
👍 @facebook-github-bot shipit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janicduplessis is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Yikes. |
@brentvatne merged commit 0408533 into |
it is a bit, but we do this kind of processing internally so I think there needs to be some way to expose the same power to users. I actually originally added this code iirc but definitely open to ideas for other ways to solve the use case mentioned in op |
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
…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
This regression was caused by 199c918 - property values are initialized to true rather than a string that matches the property name now.
Test Plan:
StyleSheet.setStyleAttributePreprocessor
in order to map fontFamily names to internal unique ids that represent the font families in our asset system: https://github.com/expo/expo/blob/0c238c1b66e649ed8c90993164e850459f310b95/packages/expo/src/launch/registerRootComponent.tsx#L24StyleSheet.setStyleAttributePreprocessor('fontFamily', name => name);
- this will result in the following error:With this patch, this error is resolved.
Changelog: