Skip to content

Commit 756d0fd

Browse files
authored
feat: update to stable version of v9 (#736)
1 parent f30d3e7 commit 756d0fd

File tree

19 files changed

+166
-98
lines changed

19 files changed

+166
-98
lines changed

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
const { defineConfig } = require('eslint/config');
22
const expoConfig = require('eslint-config-expo/flat');
33
const globals = require('globals');
4+
const reactCompiler = require('eslint-plugin-react-compiler');
45

56
module.exports = defineConfig([
67
{
78
ignores: [
9+
'.yarn/**',
810
'**/dist/**',
911
'packages/react-native/template/**/*',
1012
'packages/react-native/src/rn-host-detect.js',
@@ -14,6 +16,7 @@ module.exports = defineConfig([
1416
],
1517
},
1618
expoConfig,
19+
reactCompiler.configs.recommended,
1720
{
1821
files: ['**/*.spec.js', '**/*.spec.jsx', '**/*.test.js', '**/*.test.jsx'],
1922
languageOptions: {

examples/expo-example/app.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export default {
66
web: {
77
bundler: 'metro',
88
},
9+
experiments: {
10+
reactCompiler: false,
11+
},
912
userInterfaceStyle: 'automatic',
1013
newArchEnabled: true,
1114
} satisfies ExpoConfig;

examples/expo-example/babel.config.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,7 @@
33
module.exports = function (api) {
44
api.cache(true);
55
return {
6-
presets: ['babel-preset-expo'],
6+
presets: [['babel-preset-expo']],
77
plugins: [['babel-plugin-react-docgen-typescript', { exclude: 'node_modules' }]],
8-
// plugins: [
9-
// [
10-
// 'babel-plugin-react-docgen',
11-
// {
12-
// ignore: [
13-
// '**/node_modules/**',
14-
// '**/__tests__/**',
15-
// '**/__mocks__/**',
16-
// path.resolve(__dirname, '../../node_modules/*'),
17-
// ],
18-
// },
19-
// ],
20-
// ],
218
};
229
};

examples/expo-example/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,30 @@
3030
"@react-native-async-storage/async-storage": "2.1.2",
3131
"@react-native-community/datetimepicker": "8.3.0",
3232
"@react-native-community/slider": "4.5.6",
33-
"@storybook/addon-links": "9.0.0-rc.4",
33+
"@storybook/addon-links": "^9",
3434
"@storybook/addon-ondevice-actions": "^9.0.0-rc.4",
3535
"@storybook/addon-ondevice-backgrounds": "^9.0.0-rc.4",
3636
"@storybook/addon-ondevice-controls": "^9.0.0-rc.4",
3737
"@storybook/addon-ondevice-notes": "^9.0.0-rc.4",
3838
"@storybook/addon-react-native-server": "0.0.6",
3939
"@storybook/global": "^5.0.0",
40-
"@storybook/react": "9.0.0-rc.4",
40+
"@storybook/react": "^9",
4141
"@storybook/react-native": "^9.0.0-rc.4",
4242
"@storybook/react-native-theming": "^9.0.0-rc.4",
4343
"@storybook/react-native-ui-lite": "^9.0.0-rc.4",
44-
"@storybook/react-native-web-vite": "9.0.0-rc.4",
44+
"@storybook/react-native-web-vite": "^9",
45+
"babel-plugin-react-compiler": "^19.1.0-rc.2",
4546
"expo": "~53.0.9",
4647
"react": "19.0.0",
48+
"react-compiler-runtime": "^19.1.0-rc.2",
4749
"react-dom": "19.0.0",
4850
"react-native": "0.79.2",
4951
"react-native-gesture-handler": "~2.24.0",
5052
"react-native-reanimated": "~3.17.4",
5153
"react-native-safe-area-context": "5.4.0",
5254
"react-native-svg": "15.11.2",
5355
"react-native-web": "^0.20.0",
54-
"storybook": "9.0.0-rc.4",
56+
"storybook": "^9",
5557
"storybook-addon-deep-controls": "^0.9.2",
5658
"ws": "^8.18.0"
5759
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"eslint": "^9.25.1",
5454
"eslint-config-expo": "^9.2.0",
5555
"eslint-config-prettier": "^10.1.2",
56+
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
5657
"lerna": "^8.1.2",
5758
"prettier": "^3.5.3",
5859
"sherif": "^1.4.0",

packages/ondevice-actions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"peerDependencies": {
3737
"react": "*",
3838
"react-native": "*",
39-
"storybook": "9.0.0-rc.4"
39+
"storybook": "^9"
4040
},
4141
"publishConfig": {
4242
"access": "public"

packages/ondevice-backgrounds/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"peerDependencies": {
4141
"react": "*",
4242
"react-native": "*",
43-
"storybook": "9.0.0-rc.4"
43+
"storybook": "^9"
4444
},
4545
"publishConfig": {
4646
"access": "public"

packages/ondevice-controls/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@react-native-community/slider": "*",
4848
"react": "*",
4949
"react-native": "*",
50-
"storybook": "9.0.0-rc.4"
50+
"storybook": "^9"
5151
},
5252
"peerDependenciesMeta": {
5353
"@gorhom/bottom-sheet": {

packages/ondevice-controls/src/hooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const useArgs = (
3030
return () => storyStore._channel.off(STORY_ARGS_UPDATED, cb);
3131
// Exclude `initialArgs` from the dependencies, as these are not relevant
3232
// until `storyId` changes.
33+
// eslint-disable-next-line react-compiler/react-compiler
3334
// eslint-disable-next-line react-hooks/exhaustive-deps
3435
}, [storyId]);
3536

packages/ondevice-notes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"peerDependencies": {
3939
"react": "*",
4040
"react-native": "*",
41-
"storybook": "9.0.0-rc.4"
41+
"storybook": "^9"
4242
},
4343
"publishConfig": {
4444
"access": "public"

packages/react-native-ui-common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"dependencies": {
6060
"@storybook/csf": "^0.1.13",
61-
"@storybook/react": "9.0.0-rc.4",
61+
"@storybook/react": "^9",
6262
"@storybook/react-native-theming": "^9.0.0-rc.4",
6363
"es-toolkit": "^1.38.0",
6464
"fuse.js": "^7.0.0",
@@ -70,7 +70,7 @@
7070
"peerDependencies": {
7171
"react": "*",
7272
"react-native": ">=0.57.0",
73-
"storybook": "9.0.0-rc.4"
73+
"storybook": "^9"
7474
},
7575
"engines": {
7676
"node": ">=18.0.0"

packages/react-native-ui-common/src/hooks/useLastViewed.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const useLastViewed = (selection: Selection) => {
2323

2424
useEffect(() => {
2525
if (selection) updateLastViewed(selection);
26+
// eslint-disable-next-line react-compiler/react-compiler
2627
// eslint-disable-next-line react-hooks/exhaustive-deps
2728
}, [selection]);
2829

packages/react-native-ui-common/src/util/useStyle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ export const useStyle = <
2424
styleFactory: () => TOutput,
2525
deps?: DependencyList
2626
): TOutput =>
27+
// eslint-disable-next-line react-compiler/react-compiler
2728
// eslint-disable-next-line react-hooks/exhaustive-deps
2829
useMemo(styleFactory, deps);

packages/react-native-ui-lite/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"typescript": "~5.8.3"
5959
},
6060
"dependencies": {
61-
"@storybook/react": "9.0.0-rc.4",
61+
"@storybook/react": "^9",
6262
"@storybook/react-native-theming": "^9.0.0-rc.4",
6363
"@storybook/react-native-ui-common": "^9.0.0-rc.4",
6464
"fuse.js": "^7.0.0",
@@ -69,7 +69,7 @@
6969
"peerDependencies": {
7070
"react": "*",
7171
"react-native": ">=0.57.0",
72-
"storybook": "9.0.0-rc.4"
72+
"storybook": "^9"
7373
},
7474
"engines": {
7575
"node": ">=18.0.0"

packages/react-native-ui-lite/src/Tree.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ export const Tree = React.memo<{
256256
// Omit single-story components from the list of nodes.
257257
const collapsedItems = useMemo(
258258
() => Object.keys(data).filter((id) => !singleStoryComponentIds.includes(id)),
259+
// eslint-disable-next-line react-compiler/react-compiler
259260
// eslint-disable-next-line react-hooks/exhaustive-deps
260261
[singleStoryComponentIds]
261262
);
@@ -281,6 +282,7 @@ export const Tree = React.memo<{
281282
},
282283
{ ...data }
283284
);
285+
// eslint-disable-next-line react-compiler/react-compiler
284286
// eslint-disable-next-line react-hooks/exhaustive-deps
285287
}, [data]);
286288

packages/react-native-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"typescript": "~5.8.3"
5959
},
6060
"dependencies": {
61-
"@storybook/react": "9.0.0-rc.4",
61+
"@storybook/react": "^9",
6262
"@storybook/react-native-theming": "^9.0.0-rc.4",
6363
"@storybook/react-native-ui-common": "^9.0.0-rc.4",
6464
"es-toolkit": "^1.38.0",
@@ -75,7 +75,7 @@
7575
"react-native-reanimated": ">=3",
7676
"react-native-safe-area-context": "*",
7777
"react-native-svg": ">=14",
78-
"storybook": "9.0.0-rc.4"
78+
"storybook": "^9"
7979
},
8080
"engines": {
8181
"node": ">=18.0.0"

packages/react-native-ui/src/Tree.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ export const Tree = React.memo<{
259259
// Omit single-story components from the list of nodes.
260260
const collapsedItems = useMemo(
261261
() => Object.keys(data).filter((id) => !singleStoryComponentIds.includes(id)),
262+
// eslint-disable-next-line react-compiler/react-compiler
262263
// eslint-disable-next-line react-hooks/exhaustive-deps
263264
[singleStoryComponentIds]
264265
);
@@ -284,6 +285,7 @@ export const Tree = React.memo<{
284285
},
285286
{ ...data }
286287
);
288+
// eslint-disable-next-line react-compiler/react-compiler
287289
// eslint-disable-next-line react-hooks/exhaustive-deps
288290
}, [data]);
289291

packages/react-native/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"dependencies": {
4949
"@storybook/csf": "^0.1.13",
5050
"@storybook/global": "^5.0.0",
51-
"@storybook/react": "9.0.0-rc.4",
51+
"@storybook/react": "^9",
5252
"@storybook/react-native-theming": "^9.0.0-rc.4",
5353
"@storybook/react-native-ui": "^9.0.0-rc.4",
5454
"@storybook/react-native-ui-common": "^9.0.0-rc.4",
@@ -72,7 +72,7 @@
7272
"react": "19.0.0",
7373
"react-native": "0.79.2",
7474
"react-test-renderer": "^19.1.0",
75-
"storybook": "9.0.0-rc.4",
75+
"storybook": "^9",
7676
"tsup": "^7.2.0",
7777
"typescript": "~5.8.3"
7878
},
@@ -83,7 +83,7 @@
8383
"react-native-gesture-handler": ">=2",
8484
"react-native-reanimated": ">=2",
8585
"react-native-safe-area-context": "*",
86-
"storybook": "9.0.0-rc.4"
86+
"storybook": "^9"
8787
},
8888
"peerDependenciesMeta": {
8989
"@gorhom/bottom-sheet": {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy