@storybook/react-native 10.0.0-rc.2 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native",
|
|
3
|
-
"version": "10.0.0
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "A better way to develop React Native Components for your app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@storybook/global": "^5.0.0",
|
|
52
|
-
"@storybook/react": "10.0.0",
|
|
53
|
-
"@storybook/react-native-theming": "^10.0.0
|
|
54
|
-
"@storybook/react-native-ui": "^10.0.0
|
|
55
|
-
"@storybook/react-native-ui-common": "^10.0.0
|
|
52
|
+
"@storybook/react": "^10.0.0",
|
|
53
|
+
"@storybook/react-native-theming": "^10.0.0",
|
|
54
|
+
"@storybook/react-native-ui": "^10.0.0",
|
|
55
|
+
"@storybook/react-native-ui-common": "^10.0.0",
|
|
56
56
|
"commander": "^8.2.0",
|
|
57
57
|
"dedent": "^1.5.1",
|
|
58
58
|
"deepmerge": "^4.3.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"jotai": "^2.6.2",
|
|
75
75
|
"react": "19.1.0",
|
|
76
76
|
"react-native": "0.81.4",
|
|
77
|
-
"storybook": "10.0.0",
|
|
77
|
+
"storybook": "^10.0.0",
|
|
78
78
|
"tsup": "^8.5.0",
|
|
79
79
|
"typescript": "~5.9.2",
|
|
80
80
|
"universal-test-renderer": "^0.6.0"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"react-native-gesture-handler": ">=2",
|
|
87
87
|
"react-native-reanimated": ">=2",
|
|
88
88
|
"react-native-safe-area-context": "*",
|
|
89
|
-
"storybook": ">=10 ||
|
|
89
|
+
"storybook": ">=10 || ^10"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
92
92
|
"@gorhom/bottom-sheet": {
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "f2af5e230aac4cd858f2d73909868ae4952eb1c1"
|
|
112
112
|
}
|
package/readme.md
CHANGED
|
@@ -194,7 +194,7 @@ https://www.youtube.com/watch?v=egBqrYg0AIg
|
|
|
194
194
|
In storybook we use a syntax called CSF that looks like this:
|
|
195
195
|
|
|
196
196
|
```tsx
|
|
197
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
197
|
+
import type { Meta, StoryObj } from '@storybook/react-native';
|
|
198
198
|
import { MyButton } from './Button';
|
|
199
199
|
|
|
200
200
|
const meta = {
|
|
@@ -263,7 +263,7 @@ For global decorators and parameters, you can add them to `preview.tsx` inside y
|
|
|
263
263
|
|
|
264
264
|
```tsx
|
|
265
265
|
// .rnstorybook/preview.tsx
|
|
266
|
-
import type {
|
|
266
|
+
import type {
|
|
267
267
|
import { withBackgrounds } from '@storybook/addon-ondevice-backgrounds';
|
|
268
268
|
|
|
269
269
|
const preview: Preview = {
|
package/template/cli/preview.tsx
CHANGED