Skip to content

Commit 3fbf0c2

Browse files
authored
fix: generate script not found with bun and reanimated warnings on expo 52 (#651)
* fix: generate script sometimes not found with bun * v8.4.3-alpha.0 * fix: reanimated warnings * v8.4.3-alpha.1 * fix: example app * fix: remove references to v6 and watcher * fix: lock
1 parent 4c488bb commit 3fbf0c2

File tree

20 files changed

+175
-795
lines changed

20 files changed

+175
-795
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
/** @type{import("expo/config").ExpoConfig} */
2-
module.exports = {
1+
import type { ExpoConfig } from 'expo/config';
2+
3+
export default {
34
name: 'Expo Example',
45
slug: 'expo-example',
56
web: {
67
bundler: 'metro',
78
},
89
userInterfaceStyle: 'automatic',
9-
};
10+
newArchEnabled: true,
11+
} satisfies ExpoConfig;

examples/expo-example/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "expo-example",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"private": true,
55
"main": "index.js",
66
"scripts": {
@@ -20,30 +20,30 @@
2020
},
2121
"dependencies": {
2222
"@babel/preset-env": "^7.25.4",
23-
"@expo/metro-runtime": "~4.0.0-preview.0",
23+
"@expo/metro-runtime": "~4.0.0",
2424
"@gorhom/bottom-sheet": "^5.0.5",
2525
"@react-native-async-storage/async-storage": "1.23.1",
2626
"@react-native-community/datetimepicker": "8.2.0",
2727
"@react-native-community/slider": "4.5.5",
2828
"@storybook/addon-essentials": "^8.4.2",
2929
"@storybook/addon-interactions": "^8.4.2",
3030
"@storybook/addon-links": "^8.4.2",
31-
"@storybook/addon-ondevice-actions": "^8.4.2",
32-
"@storybook/addon-ondevice-backgrounds": "^8.4.2",
33-
"@storybook/addon-ondevice-controls": "^8.4.2",
34-
"@storybook/addon-ondevice-notes": "^8.4.2",
31+
"@storybook/addon-ondevice-actions": "^8.4.3-alpha.1",
32+
"@storybook/addon-ondevice-backgrounds": "^8.4.3-alpha.1",
33+
"@storybook/addon-ondevice-controls": "^8.4.3-alpha.1",
34+
"@storybook/addon-ondevice-notes": "^8.4.3-alpha.1",
3535
"@storybook/addon-react-native-server": "0.0.6",
3636
"@storybook/addon-react-native-web": "^0.0.22",
3737
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
3838
"@storybook/blocks": "^8.4.2",
3939
"@storybook/builder-webpack5": "^8.4.2",
4040
"@storybook/global": "^5.0.0",
4141
"@storybook/react": "^8.4.2",
42-
"@storybook/react-native": "^8.4.2",
43-
"@storybook/react-native-theming": "^8.4.2",
42+
"@storybook/react-native": "^8.4.3-alpha.1",
43+
"@storybook/react-native-theming": "^8.4.3-alpha.1",
4444
"@storybook/react-webpack5": "^8.4.2",
4545
"@storybook/test": "^8.4.2",
46-
"expo": "52.0.0-preview.21",
46+
"expo": "~52.0.5",
4747
"history": "^5.3.0",
4848
"querystring": "^0.2.1",
4949
"react": "18.3.1",
@@ -70,7 +70,7 @@
7070
"babel-loader": "^9.1.3",
7171
"babel-plugin-react-docgen-typescript": "^1.5.1",
7272
"jest": "^29.7.0",
73-
"jest-expo": "~52.0.0-preview.3",
73+
"jest-expo": "~52.0.0",
7474
"metro-react-native-babel-preset": "^0.77.0",
7575
"typescript": "^5.3.3"
7676
}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"npmClient": "yarn",
33
"registry": "https://registry.npmjs.org",
4-
"version": "8.4.2"
4+
"version": "8.4.3-alpha.1"
55
}

packages/ondevice-actions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/addon-ondevice-actions",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"description": "Action Logger addon for react-native storybook",
55
"keywords": [
66
"storybook"

packages/ondevice-backgrounds/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/addon-ondevice-backgrounds",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"description": "A react-native storybook addon to show different backgrounds for your preview",
55
"keywords": [
66
"addon",
@@ -33,7 +33,7 @@
3333
},
3434
"dependencies": {
3535
"@storybook/core": "^8.4.2",
36-
"@storybook/react-native-theming": "^8.4.2"
36+
"@storybook/react-native-theming": "^8.4.3-alpha.1"
3737
},
3838
"devDependencies": {
3939
"typescript": "^5.3.3"

packages/ondevice-controls/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/addon-ondevice-controls",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"description": "Display storybook controls on your device.",
55
"keywords": [
66
"addon",
@@ -32,8 +32,8 @@
3232
"dependencies": {
3333
"@storybook/addon-controls": "^8.4.2",
3434
"@storybook/core": "^8.4.2",
35-
"@storybook/react-native-theming": "^8.4.2",
36-
"@storybook/react-native-ui": "^8.4.2",
35+
"@storybook/react-native-theming": "^8.4.3-alpha.1",
36+
"@storybook/react-native-ui": "^8.4.3-alpha.1",
3737
"deep-equal": "^1.0.1",
3838
"prop-types": "^15.7.2",
3939
"react-native-modal-datetime-picker": "^14.0.0",

packages/ondevice-notes/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/addon-ondevice-notes",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"description": "Write notes for your react-native Storybook stories.",
55
"keywords": [
66
"addon",
@@ -30,7 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@storybook/core": "^8.4.2",
33-
"@storybook/react-native-theming": "^8.4.2",
33+
"@storybook/react-native-theming": "^8.4.3-alpha.1",
3434
"react-native-markdown-display": "^7.0.2"
3535
},
3636
"devDependencies": {

packages/react-native-theming/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/react-native-theming",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"description": "A wrapper library around emotion 11 to provide theming support for react-native storybook",
55
"keywords": [
66
"react",

packages/react-native-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/react-native-ui",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"description": "ui components for react native storybook",
55
"keywords": [
66
"react",
@@ -60,7 +60,7 @@
6060
"dependencies": {
6161
"@storybook/core": "^8.4.2",
6262
"@storybook/react": "^8.4.2",
63-
"@storybook/react-native-theming": "^8.4.2",
63+
"@storybook/react-native-theming": "^8.4.3-alpha.1",
6464
"fuse.js": "^7.0.0",
6565
"memoizerific": "^1.11.3",
6666
"polished": "^4.3.1",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const MobileAddonsPanel = forwardRef<MobileAddonsPanelRef, { storyId?: st
5050
return {
5151
maxHeight: height - animatedPosition.value - insets.bottom,
5252
};
53-
}, [animatedPosition.value, height, insets.bottom]);
53+
}, [animatedPosition, height, insets.bottom]);
5454

5555
return (
5656
<BottomSheetModal

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export const SingleStoryComponents: Story = {
7777
data={{
7878
...{
7979
single: {
80+
tags: [],
8081
type: 'component',
8182
name: 'Single',
8283
id: 'single',

packages/react-native/bin/watcher.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/react-native/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@storybook/react-native",
3-
"version": "8.4.2",
3+
"version": "8.4.3-alpha.1",
44
"description": "A better way to develop React Native Components for your app",
55
"keywords": [
66
"react",
@@ -19,13 +19,13 @@
1919
"license": "MIT",
2020
"main": "dist/index.js",
2121
"bin": {
22-
"sb-rn-get-stories": "./bin/get-stories.js",
23-
"sb-rn-watcher": "./bin/watcher.js"
22+
"sb-rn-get-stories": "./bin/get-stories.js"
2423
},
2524
"exports": {
2625
".": "./dist/index.js",
2726
"./metro/withStorybook": "./dist/metro/withStorybook.js",
28-
"./preview": "./dist/preview.js"
27+
"./preview": "./dist/preview.js",
28+
"./scripts/generate": "./scripts/generate.js"
2929
},
3030
"files": [
3131
"bin/**/*",
@@ -49,8 +49,8 @@
4949
"@storybook/csf": "^0.1.1",
5050
"@storybook/global": "^5.0.0",
5151
"@storybook/react": "^8.4.2",
52-
"@storybook/react-native-theming": "^8.4.2",
53-
"@storybook/react-native-ui": "^8.4.2",
52+
"@storybook/react-native-theming": "^8.4.3-alpha.1",
53+
"@storybook/react-native-ui": "^8.4.3-alpha.1",
5454
"chokidar": "^3.5.1",
5555
"commander": "^8.2.0",
5656
"dedent": "^1.5.1",

0 commit comments

Comments
 (0)