| c0b543d7 | 27-Jan-2023 |
Bartosz Kaszubowski <[email protected]> |
[docs] APISection: allow interfaces as component props (#20968)
# Why
This is an APISection feature required to correctly render lately
changed `expo-image` component props.
# How
Allow in
[docs] APISection: allow interfaces as component props (#20968)
# Why
This is an APISection feature required to correctly render lately
changed `expo-image` component props.
# How
Allow interfaces as component props, refactor `APISectionProps` to
handle both types and interfaces rendering and updated related code for
the conversion, like inherited props section.
Additionally, I have updated the `expo-image` documentation data file.
After the regeneration the page still looks the same as currently in
PROD (besides one, new prop), which was a goal of this improvement.
# Test Plan
The changes have been tested by running docs app locally and visiting
Image component docs.
# Preview
<img width="1543" alt="Screenshot 2023-01-26 at 21 09 05"
src="https://user-images.githubusercontent.com/719641/214939803-6afd3e9f-012a-490a-bf37-cd32fd6dc848.png">
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
show more ...
|