[react-native] Add missing style props to View#25735
[react-native] Add missing style props to View#25735alloy merged 7 commits intoDefinitelyTyped:masterfrom
Conversation
|
@brunolemos Thank you for submitting this PR! 🔔 @alloy @huhuanming @iRoachie @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @jnbt @j-fro @gazaret - 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. |
|
A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped! |
| * Optional styles for Scrollview's global wrapper | ||
| */ | ||
| containerCustomStyle?: StyleProp<ScrollViewStyle>; | ||
| containerCustomStyle?: StyleProp<ViewStyle>; |
There was a problem hiding this comment.
I’m a little confused, isn’t this limiting the available styles to a superset of the available scrollview styles?
There was a problem hiding this comment.
It's supposed to be a ViewStyle according to the source https://github.com/archriss/react-native-snap-carousel/blob/59b1d90f7e5ad23d4c4ced241ec15379e5d2fb6d/src/carousel/Carousel.js#L46
alloy
left a comment
There was a problem hiding this comment.
I’d really appreciate some changes to the tests that reflect the important changes in here to ensure we can fully understand them now and in the future.
|
@brunolemos One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. Thank you! |
|
@iRoachie Just from reading the changes I have a hard time feeling assured that I understand how all changes will affect existing code bases, but if you feel that you do then let me know and I’ll merge as-is. |
|
I can add a couple tests later today |
10c5f31 to
cf5dd19
Compare
|
🔔 @alloy - Thanks for your review of this PR! Can you please look at the new code and update your review status if appropriate? |
|
Thanks! 👍 |
Continuation of #25083
React Native actually accepts the whole
ViewStyleas props, not only theFlexStyle.Before this PR, it wouldn't allow me to do
<View backgroundColor="#00FF00" />, after it will.npm test.)npm run lint package-name(ortscif notslint.jsonis present).Select one of these and delete the others:
tslint.jsoncontaining{ "extends": "dtslint/dt.json" }.