[react-native] Support Layout Props#25083
Conversation
5d9005a to
232793c
Compare
|
Hm, it's conflicting with BTW seems to be a deprecated lib, last update 9 months ago. |
|
@brunolemos Thank you for submitting this PR! 🔔 @alloy @huhuanming @iRoachie @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
|
@brunolemos The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
Doesn't actually seem to be the case of inheriting from |
|
Only prop they seem to use is |
|
Seems to conflict with lot's of packages :( |
|
@brunolemos The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
|
Just react-native-linear-gradient and expo |
|
@iRoachie but is it showing all errors? I'm afraid it's only showing for the |
|
May have to run again, since the modalbox PR just got merged |
|
Yes I pushed again a few minutes ago |
|
@iRoachie I've checked all properties, so these are all pending errors: Incompatible properties with packages
Other compiler errors
|
|
How do we go about fixing these? Changing prop names in libraries would have to be breaking changes for their packages. |
|
Solution 1: I can make a PR to Solution 2: We can comment these two properties here for now and merge this, to prevent other properties from conflicting in the future. And create an issue. The problem with this approach is that they will probably end up commented forever. Solution 3: We can remove |
Fix react-native-linear-gradient#279 Fix conflict with react native layout props Related: DefinitelyTyped/DefinitelyTyped#25083
|
Alright number 3 sounds good to me |
Support some styles as View and Image props, e.g. <View flex={1} />
|
@iRoachie ok, ready 🍾 |
iRoachie
left a comment
There was a problem hiding this comment.
Thanks for taking the time to do this
Related: #25081
TIL React Native supports layout styles as View and Image props.
E.g.:
<View flex={1} />,<Image width={200} />npm test.)npm run lint package-name(ortscif notslint.jsonis present).tslint.jsoncontaining{ "extends": "dtslint/dt.json" }.