Skip to content

Commit 99990f2

Browse files
committed
Enable React Compiler 🔥
1 parent 506c785 commit 99990f2

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎app.config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const config: { expo: ExpoConfig } = {
88
orientation: "portrait",
99
userInterfaceStyle: "dark",
1010
newArchEnabled: true,
11+
experiments: {
12+
reactCompiler: true,
13+
},
1114
splash: {
1215
image: "./assets/splash-icon.png",
1316
resizeMode: "contain",

‎bun.lock‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎eslint.config.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
// https://docs.expo.dev/guides/using-eslint/
2-
const { defineConfig } = require('eslint/config');
2+
const { defineConfig } = require("eslint/config");
33
const expoConfig = require("eslint-config-expo/flat");
44

55
module.exports = defineConfig([
66
expoConfig,
77
{
88
ignores: ["dist/*"],
9-
}
9+
plugins: ["react-compiler"],
10+
rules: {
11+
"react-compiler/react-compiler": "error",
12+
},
13+
},
1014
]);

‎package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@
5656
"@rn-primitives/separator": "^1.2.0",
5757
"@rn-primitives/slot": "^1.2.0",
5858
"@tanstack/react-query": "^5.81.2",
59+
"babel-plugin-react-compiler": "^19.0.0-beta-af1b7da-20250417",
5960
"bitcoin-address-validation": "^3.0.0",
6061
"class-variance-authority": "^0.7.1",
6162
"clsx": "^2.1.1",
63+
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
6264
"expo": "~53.0.12",
6365
"expo-build-properties": "~0.14.6",
6466
"expo-constants": "^17.1.6",

0 commit comments

Comments
 (0)