| #
0ecb8e85 |
| 22-Jul-2021 |
Bartosz Kaszubowski <[email protected]> |
[linear-gradient] simplify props TS types (#13594)
# Why
Refs #13567
This small PR simplifies and unifies a bit more the TS types for components that extend `View`.
# How
Change:
* `Rea
[linear-gradient] simplify props TS types (#13594)
# Why
Refs #13567
This small PR simplifies and unifies a bit more the TS types for components that extend `View`.
# How
Change:
* `React.ComponentProps<typeof View>` => `ViewProps`
# Test Plan
The change has been tested by running on the `native-component-list` app and docs website on `localhost`.
show more ...
|
| #
7db65dee |
| 18-Sep-2020 |
Stanisław Chmiela <[email protected]> |
[expo-linear-gradient] Add proper children prop declaration (#10227)
# Why
We allow `children` property on `LinearGradient` in code, but no in type.
# How
Wrapped props with `React.PropsWit
[expo-linear-gradient] Add proper children prop declaration (#10227)
# Why
We allow `children` property on `LinearGradient` in code, but no in type.
# How
Wrapped props with `React.PropsWithChildren`.
# Test Plan
TS compiled the library, no longer reported problems in NCL.
show more ...
|
| #
257e8878 |
| 08-Jun-2020 |
Evan Bacon <[email protected]> |
[linear-gradient] Migrate to functional components (#8673)
* Remove index re-export
* Created shim element for unsupported platforms
* Convert LinearGradient to functional component
* Conve
[linear-gradient] Migrate to functional components (#8673)
* Remove index re-export
* Created shim element for unsupported platforms
* Convert LinearGradient to functional component
* Convert all react imports to star imports
* Unify types and add doc blocks
* Update NativeLinearGradient.web.tsx
* Updated build files
* Updated docs for linear gradient
* Update linear-gradient.md
* Update CHANGELOG.md
* Use nullish
* Clean up function export
* Apply suggestions from code review
Co-authored-by: James Ide <[email protected]>
* Updated docs
Co-authored-by: James Ide <[email protected]>
show more ...
|