Skip to content

feat: React Native 0.80 support #1770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@
"@babel/preset-react": "^7.25.9",
"@babel/preset-typescript": "^7.26.0",
"@callstack/eslint-config": "^15.0.0",
"@react-native/babel-preset": "0.79.1",
"@react-native/babel-preset": "0.80.0-rc.2",
"@release-it/conventional-changelog": "^10.0.0",
"@relmify/jest-serializer-strip-ansi": "^1.0.2",
"@types/jest": "^29.5.14",
"@types/node": "^22.13.8",
"@types/react": "^19.0.0",
"@types/react-test-renderer": "^19.0.0",
"@types/react": "^19.1.0",
"@types/react-test-renderer": "^19.1.0",
"babel-jest": "^29.7.0",
"babel-plugin-module-resolver": "^5.0.2",
"del-cli": "^6.0.0",
Expand All @@ -87,10 +87,10 @@
"flow-bin": "~0.170.0",
"jest": "^29.7.0",
"prettier": "^2.8.8",
"react": "19.0.0",
"react-native": "0.79.1",
"react-native-gesture-handler": "^2.23.1",
"react-test-renderer": "19.0.0",
"react": "19.1.0",
"react-native": "0.80.0-rc.2",
"react-native-gesture-handler": "^2.25.0",
"react-test-renderer": "19.1.0",
"release-it": "^18.0.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.19.1"
Expand Down
7 changes: 4 additions & 3 deletions src/__tests__/react-native-api.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import { render, screen } from '..';

const isReact19 = React.version.startsWith('19.');
const testGateReact19 = isReact19 ? test : test.skip;

/**
* Tests in this file are intended to give us an proactive warning that React Native behavior has
* changed in a way that may impact our code like queries or event handling.
Expand Down Expand Up @@ -214,18 +217,16 @@
`);
});

test('React Native API assumption: <Modal> renders a single host element', () => {
testGateReact19('React Native API assumption: <Modal> renders a single host element', () => {
render(
<Modal testID="test">
<Text>Modal Content</Text>
</Modal>,
);

expect(screen.toJSON()).toMatchInlineSnapshot(`

Check failure on line 227 in src/__tests__/react-native-api.test.tsx

View workflow job for this annotation

GitHub Actions / Lint

Expect must be inside of a test block
<Modal
hardwareAccelerated={false}
testID="test"
visible={true}
>
<Text>
Modal Content
Expand Down
Loading
Loading