Uh oh!
There was an error while loading. Please reload this page.
Add platform hook for View style props - #18100
Conversation
hramos
commented
Feb 26, 2018
You asked elsewhere how this might impact the docs. Right now, |
Similar to the `ViewPropTypes` hook to allow customization of prop types for iOS and Android, it's also useful to allow platforms to override style prop types.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
facebook-github-bot
commented
Feb 27, 2018
I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification. |
hramos
commented
Feb 27, 2018
It looks like with this change, some of our own internal apps are failing to build. I'll need to add this to my queue of diffs that need to be manually landed. |
rozele
commented
Mar 3, 2018
@hramos - any luck? |
hramos
commented
Mar 5, 2018
I haven't gotten around to it yet. Some of our apps are failing to build with this error: |
rozele
commented
Mar 8, 2018
@hramos - I imagine this may be because the |
@hramos - perhaps we just leave
|
cpojer
commented
Jan 29, 2019
We are currently working on getting rid of PropTypes altogether and using Flow Types to describe View props. I'm gonna close this PR and I'm sorry we didn't get to it earlier. |
Similar to the
ViewPropTypeshook to allow customization of prop types for iOS and Android, it's also useful to allow platforms to override style prop types.Motivation
(Write your motivation here.)
Test Plan
Run jest tests.
Related PRs
#15175
Release Notes
[GENERAL][ENHANCEMENT][MINOR][View] - Add platform hook for adding View style props