Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork149
Add documentation for StyleSheet API#520
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
6b444c5 to1a788aeCompare553ab75 toab1f95fCompare| ###`flatten` | ||
| Takes an array of styles (of type`Style.t`) and returns a single style (also of | ||
| type`Style.t`). |
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.
Maybe add a comment that using styles created withStyle.array inStyleSheet.create will lead to a runtime error, soStyleSheet.flattenmust be used in that case. (Style.array is fine for passing styles to component props though.)
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.
Added such comments
Uh oh!
There was an error while loading.Please reload this page.
| ```reason | ||
| create: Js.t('a) => Js.t('a) | ||
| ``` |
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.
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.
Perhaps we revisit this issue later, but I don't think there is a way to excludearray(Style.t) without a lot of pain elsewhere.
347efd5 to7185d4aCompare👍 |
Also added the relevant link to
Style.md