Skip to content

[docs] Update Strict TypeScript API guide - #5111

Open
huntie wants to merge 1 commit into
react:mainfrom
huntie:strict-api-087-updates
Open

[docs] Update Strict TypeScript API guide#5111
huntie wants to merge 1 commit into
react:mainfrom
huntie:strict-api-087-updates

Conversation

@huntie

@huntie huntie commented Jun 3, 2026

Copy link
Copy Markdown
Member
  • Simplification pass.
  • Add/consolidate ref type guidance.

See react-native-community/discussions-and-proposals#1003. Replaces #5067.

@huntie
huntie requested review from Simek, cipolleschi and cortinico June 3, 2026 15:53
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

@huntie is attempting to deploy a commit to the React Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@netlify

netlify Bot commented Jun 3, 2026

Copy link
Copy Markdown

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 9bb4c34
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/6a204dfa633cfa0009147624
😎 Deploy Preview https://deploy-preview-5111--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cipolleschi cipolleschi left a comment

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.

Overall looks good. Left a couple of comments and one code example needs to be fixed.

Comment thread docs/strict-typescript-api.md Outdated
Comment thread docs/strict-typescript-api.md Outdated
Comment thread docs/strict-typescript-api.md
</TabItem>
</Tabs>

### Refs now use `*Instance` types

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.

this will need to be explained also in the Blogpost.

Comment thread docs/strict-typescript-api.md Outdated
Comment thread docs/strict-typescript-api.md Outdated
| `VirtualizedList` | `VirtualizedListInstance` |
| `VirtualizedSectionList` | `VirtualizedSectionListInstance` |

Components without ref support (`InputAccessoryView`, `TouchableWithoutFeedback`, `experimental_LayoutConformance`) do not have instance types.

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.

will they throw an error?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No error, but simply inaccessible.

Comment thread docs/strict-typescript-api.md Outdated
@huntie
huntie force-pushed the strict-api-087-updates branch from 9bb4c34 to 824dd00 Compare July 27, 2026 14:12
- Simplification pass.
- Add/consolidate ref type guidance.
@huntie
huntie force-pushed the strict-api-087-updates branch from 824dd00 to c6ad613 Compare July 27, 2026 14:14
@huntie

huntie commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

Latest push: Address feedback, fold in opt-in → opt-out switch.

Note: Not the final version for 0.87 — will continue to refine, in a separate PR closer to the 0.87 blog post.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants