Skip to content

[0.22] Add TypeScript types - #2913

Merged
zoontek merged 1 commit into
0.22-devfrom
add-ts-types
Oct 19, 2026
Merged

zoontek merged 1 commit into
0.22-devfrom
add-ts-types

Conversation

@zoontek

@zoontek zoontek commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Important

This PR targets the 0.22-dev branch

Add react-native-web/types, which augments the react-native 0.88 types with the props and styles react-native-web supports. It replaces @types/react-native-web.

/// <reference types="react-native-web/types" />

The react-native-web module also gets types for its own APIs (render, StyleSheet.getSheet, useLocaleContext, …).

@zoontek
zoontek requested a review from Kudo October 19, 2026 13:40
@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c7422e7:

Sandbox Source
react-native-web-examples Configuration

@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 134 kB

compressed-size-action

@zoontek
zoontek merged commit 1d7c853 into 0.22-dev Oct 19, 2026
6 checks passed
@zoontek
zoontek deleted the add-ts-types branch October 19, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants