Repository navigation
Replies: 2 comments 2 replies
|
Hi! I'm surprised I'm the first one here 😁 I gave the strict TypeScript API a shot. Upgrading most of my project went smooth. But I'd like to highlight a couple of regressions I've run into.
|
|
Hi! Could we by chance have <ScrollView>
<RNScreensModal>
{/* I need to manually add these here to break the illusion that these are nested scroll views */}
<VirtualizedListContextResetter>
<ScrollView.Context.Provider value={null}>
<ScrollView />
</ScrollView.Context.Provider>
</VirtualizedListContextResetter>
</RNScreensModal>
</ScrollView>This would match what the RN Modal already does. The RN Modal already injects those two contexts to each modal. Things to note |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Introduction
RFC | Docs
The 0.87 rollout of the Strict TypeScript API is an ecosystem-wide change, and one we need to make in order to have stable API guarantees for React Native in future.
Design choices about which APIs are exported at root, and intentional updates to type names/shapes have been worked on with the community and partners since the original 0.80 preview.
We believe we've ironed out all rough edges, but there may still be edge cases. If you're choosing to opt out of the Strict API in 0.87 or later, we'd love to know why.
💡 Strict API in brief
The Strict TypeScript API is React Native's modern TypeScript API, replacing the previous hand-maintained TypeScript definitions from earlier versions.
Key changes (breaking)
react-native's index file. This is a tighter and more intentional public API contract. It also ensures that internal file path changes in React Native's source code won't be breaking.https://reactnative.dev/docs/strict-typescript-api
Backlinks
All reactions