Skip to content

Commit 11cc165

Browse files
committed
fix: add clear error message about react compiler, enable react compiler in expo example
1 parent 16692dd commit 11cc165

17 files changed

Lines changed: 2530 additions & 2832 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## Fixed
11+
12+
- Add a error message about using React Compiler and how to avoid "Invalid hook call" error
13+
1014
## [0.17.2] - 2025-10-02
1115

1216
### Changed

example-expo/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { StatusBar } from 'react-native';
55

66
export function App() {
77
return (
8-
<>
8+
<React.StrictMode>
99
<StatusBar barStyle="dark-content" />
1010
<ExampleApp />
11-
</>
11+
</React.StrictMode>
1212
);
1313
}

example-expo/app.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
113113
},
114114
},
115115
plugins: [['react-native-android-widget', widgetConfig]],
116+
experiments: {
117+
reactCompiler: true,
118+
},
116119
});

example-expo/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"@react-native-async-storage/async-storage": "2.2.0",
1616
"@react-navigation/native": "^6.1.14",
1717
"@react-navigation/native-stack": "^6.9.22",
18-
"expo": "^54.0.0",
19-
"expo-dev-client": "~6.0.13",
20-
"expo-splash-screen": "~31.0.10",
18+
"expo": "~54.0.30",
19+
"expo-dev-client": "~6.0.20",
20+
"expo-splash-screen": "~31.0.13",
2121
"react": "19.1.0",
22-
"react-native": "0.81.4",
23-
"react-native-android-widget": "./react-native-android-widget-26046.tgz",
22+
"react-native": "0.81.5",
23+
"react-native-android-widget": "./react-native-android-widget-21505.tgz",
2424
"react-native-safe-area-context": "~5.6.0",
2525
"react-native-screens": "~4.16.0"
2626
},

0 commit comments

Comments
 (0)