Skip to content

[react-native] Add missing style props to View#25735

Merged
alloy merged 7 commits intoDefinitelyTyped:masterfrom
brunolemos:view-style-props
May 16, 2018
Merged

[react-native] Add missing style props to View#25735
alloy merged 7 commits intoDefinitelyTyped:masterfrom
brunolemos:view-style-props

Conversation

@brunolemos
Copy link
Copy Markdown
Contributor

@brunolemos brunolemos commented May 12, 2018

Continuation of #25083

React Native actually accepts the whole ViewStyle as props, not only the FlexStyle.

Before this PR, it wouldn't allow me to do <View backgroundColor="#00FF00" />, after it will.

PS: I noticed an existing type error but I don't know how to fix it: overflow can have the scroll value, but it is currently not autocompleting that. If we add this the ImageStyle gives an error when trying to override it. (fixed)

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

@brunolemos brunolemos requested a review from alloy as a code owner May 12, 2018 19:47
@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Awaiting reviewer feedback labels May 12, 2018
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented May 12, 2018

@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 Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Merge:Express and removed Awaiting reviewer feedback labels May 13, 2018
@typescript-bot
Copy link
Copy Markdown
Contributor

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>;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m a little confused, isn’t this limiting the available styles to a superset of the available scrollview styles?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah gotcha 👍

Copy link
Copy Markdown
Collaborator

@alloy alloy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@typescript-bot typescript-bot added Revision needed This PR needs code changes before it can be merged. and removed Owner Approved A listed owner of this package signed off on the pull request. Merge:Express labels May 14, 2018
@typescript-bot
Copy link
Copy Markdown
Contributor

@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!

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label May 14, 2018
@alloy
Copy link
Copy Markdown
Collaborator

alloy commented May 15, 2018

@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.

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label May 15, 2018
@brunolemos
Copy link
Copy Markdown
Contributor Author

I can add a couple tests later today

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label May 16, 2018
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @alloy - Thanks for your review of this PR! Can you please look at the new code and update your review status if appropriate?

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label May 16, 2018
@alloy
Copy link
Copy Markdown
Collaborator

alloy commented May 16, 2018

Thanks! 👍

@alloy alloy merged commit 23f5219 into DefinitelyTyped:master May 16, 2018
@hpmax00
Copy link
Copy Markdown

hpmax00 commented Jul 26, 2018

#27595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Popular package This PR affects a popular package (as counted by NPM download counts). Revision needed This PR needs code changes before it can be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants