Skip to content

Commit 647cf41

Browse files
feat:- use React compiler
1 parent f795d8e commit 647cf41

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

template/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
presets: ['module:@react-native/babel-preset'],
3+
plugins: ['babel-plugin-react-compiler'],
34
};

template/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"test": "jest"
1111
},
1212
"dependencies": {
13+
"@react-native/new-app-screen": "nightly",
1314
"react": "19.2.0",
1415
"react-native": "nightly",
15-
"@react-native/new-app-screen": "nightly",
1616
"react-native-safe-area-context": "^5.5.2"
1717
},
1818
"devDependencies": {
@@ -29,6 +29,7 @@
2929
"@types/jest": "^29.5.13",
3030
"@types/react": "^19.2.0",
3131
"@types/react-test-renderer": "^19.1.0",
32+
"babel-plugin-react-compiler": "^1.0.0",
3233
"eslint": "^8.19.0",
3334
"jest": "^29.6.3",
3435
"prettier": "2.8.8",

0 commit comments

Comments
 (0)