Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set node version
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24

- name: Install
shell: 'bash'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set node version
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
- name: install and compile
run: yarn
- name: build
Expand Down
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.1.0.cjs

This file was deleted.

942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.9.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.0.cjs
yarnPath: .yarn/releases/yarn-4.9.2.cjs
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
]
},
"engines": {
"node": ">=18.0"
"node": ">=22.17.0"
}
}
4 changes: 2 additions & 2 deletions examples/expo-example/.rnstorybook/storybook.requires.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const normalizedStories = [
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
),
},
{
{
titlePrefix: "",
directory: "./other_components",
files: "**/*.stories.?(ts|tsx|js|jsx)",
Expand All @@ -33,7 +33,7 @@ const normalizedStories = [
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
),
},
{
{
titlePrefix: "react-native-ui",
directory: "../../packages/react-native-ui",
files: "**/*.stories.?(ts|tsx|js|jsx)",
Expand Down
16 changes: 8 additions & 8 deletions examples/expo-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@
"@expo/metro-runtime": "~5.0.4",
"@gorhom/bottom-sheet": "^5.0.6",
"@react-native-async-storage/async-storage": "2.1.2",
"@react-native-community/datetimepicker": "8.3.0",
"@react-native-community/datetimepicker": "8.4.1",
"@react-native-community/slider": "4.5.6",
"@storybook/addon-ondevice-actions": "^9.0.14",
"@storybook/addon-ondevice-backgrounds": "^9.0.14",
"@storybook/addon-ondevice-controls": "^9.0.14",
"@storybook/addon-ondevice-notes": "^9.0.14",
"@storybook/addon-react-native-server": "^1.0.0",
"@storybook/global": "^5.0.0",
"@storybook/react": "9.0.14",
"@storybook/react": "0.0.0-pr-31819-sha-dcea463b",
"@storybook/react-native": "^9.0.14",
"@storybook/react-native-theming": "^9.0.14",
"@storybook/react-native-ui-lite": "^9.0.14",
"@storybook/react-native-web-vite": "9.0.14",
"@storybook/react-native-web-vite": "0.0.0-pr-31819-sha-dcea463b",
"babel-plugin-react-compiler": "^19.1.0-rc.2",
"expo": "~53.0.9",
"expo": "~53.0.19",
"react": "19.0.0",
"react-compiler-runtime": "^19.1.0-rc.2",
"react-dom": "19.0.0",
"react-native": "0.79.2",
"react-native": "0.79.5",
"react-native-gesture-handler": "~2.24.0",
"react-native-reanimated": "~3.17.4",
"react-native-safe-area-context": "5.4.0",
"react-native-svg": "15.11.2",
"react-native-web": "^0.20.0",
"storybook": "9.0.14",
"storybook": "0.0.0-pr-31819-sha-dcea463b",
"storybook-addon-deep-controls": "^0.9.3",
"ws": "^8.18.0"
},
Expand All @@ -61,8 +61,8 @@
"@types/react": "~19.0.10",
"@types/ws": "^8.5.10",
"babel-plugin-react-docgen-typescript": "^1.5.1",
"jest": "^29.7.0",
"jest-expo": "~53.0.5",
"jest": "~29.7.0",
"jest-expo": "~53.0.9",
"looks-same": "^9.0.1",
"rn-storybook-test": "^0.0.1",
"typescript": "~5.8.3",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"jotai@^2.6.2": "patch:jotai@npm%3A2.6.2#./.yarn/patches/jotai-npm-2.6.2-d482bf2d42.patch"
},
"engines": {
"node": ">=16",
"node": ">=22.17.0",
"yarn": ">=1.3.2"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/storybook"
},
"packageManager": "yarn@4.1.0"
"packageManager": "yarn@4.9.2"
}
2 changes: 1 addition & 1 deletion packages/ondevice-backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"peerDependencies": {
"react": "*",
"react-native": "*",
"storybook": "9.0.14"
"storybook": "0.0.0-pr-31819-sha-dcea463b"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/ondevice-controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@react-native-community/slider": "*",
"react": "*",
"react-native": "*",
"storybook": "9.0.14"
"storybook": "0.0.0-pr-31819-sha-dcea463b"
},
"peerDependenciesMeta": {
"@gorhom/bottom-sheet": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ondevice-notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"peerDependencies": {
"react": "*",
"react-native": "*",
"storybook": "9.0.14"
"storybook": "0.0.0-pr-31819-sha-dcea463b"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-theming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@emotion/native": "^11.11.0",
"@emotion/react": "^11.11.1",
"tsup": "^7.2.0"
"tsup": "^8.5.0"
},
"peerDependencies": {
"react": "*",
Expand Down
10 changes: 5 additions & 5 deletions packages/react-native-ui-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
"@types/jest": "^29.4.3",
"@types/react": "~19.0.10",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"jest": "~29.7.0",
"react-test-renderer": "^19.1.0",
"tsup": "^7.2.0",
"tsup": "^8.5.0",
"typescript": "~5.8.3"
},
"dependencies": {
"@storybook/react": "9.0.14",
"@storybook/react": "0.0.0-pr-31819-sha-dcea463b",
"@storybook/react-native-theming": "^9.0.14",
"es-toolkit": "^1.38.0",
"fuse.js": "^7.0.0",
Expand All @@ -69,10 +69,10 @@
"peerDependencies": {
"react": "*",
"react-native": ">=0.57.0",
"storybook": "9.0.14"
"storybook": "0.0.0-pr-31819-sha-dcea463b"
},
"engines": {
"node": ">=18.0.0"
"node": ">=22.17.0"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions packages/react-native-ui-lite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
"@types/jest": "^29.4.3",
"@types/react": "~19.0.10",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"jest": "~29.7.0",
"react-test-renderer": "^19.1.0",
"ts-dedent": "^2.2.0",
"tsup": "^7.2.0",
"tsup": "^8.5.0",
"typescript": "~5.8.3"
},
"dependencies": {
"@storybook/react": "9.0.14",
"@storybook/react": "0.0.0-pr-31819-sha-dcea463b",
"@storybook/react-native-theming": "^9.0.14",
"@storybook/react-native-ui-common": "^9.0.14",
"fuse.js": "^7.0.0",
Expand All @@ -69,10 +69,10 @@
"peerDependencies": {
"react": "*",
"react-native": ">=0.57.0",
"storybook": "9.0.14"
"storybook": "0.0.0-pr-31819-sha-dcea463b"
},
"engines": {
"node": ">=18.0.0"
"node": ">=22.17.0"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions packages/react-native-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
"@types/jest": "^29.4.3",
"@types/react": "~19.0.10",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"jest": "~29.7.0",
"react-test-renderer": "^19.1.0",
"ts-dedent": "^2.2.0",
"tsup": "^7.2.0",
"tsup": "^8.5.0",
"typescript": "~5.8.3"
},
"dependencies": {
"@storybook/react": "9.0.14",
"@storybook/react": "0.0.0-pr-31819-sha-dcea463b",
"@storybook/react-native-theming": "^9.0.14",
"@storybook/react-native-ui-common": "^9.0.14",
"es-toolkit": "^1.38.0",
Expand All @@ -75,10 +75,10 @@
"react-native-reanimated": ">=3",
"react-native-safe-area-context": "*",
"react-native-svg": ">=14",
"storybook": "9.0.14"
"storybook": "0.0.0-pr-31819-sha-dcea463b"
},
"engines": {
"node": ">=18.0.0"
"node": ">=22.17.0"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/react-native/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
const config = {
preset: 'jest-expo',
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg|storybook/.*|@storybook/.*|uuid)',
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg|storybook/.*|@storybook/.*|uuid|storybook)',
],
testPathIgnorePatterns: ['/node_modules/', '/scripts/generate\\.test\\.js$'],
};
module.exports = config;
26 changes: 15 additions & 11 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,38 +41,42 @@
"scripts": {
"dev": "npx --yes tsx buildscripts/gendtsdev.ts && tsup --watch",
"prepare": "rm -rf dist/ && tsup",
"test": "jest",
"test:ci": "jest",
"test:update": "jest --updateSnapshot"
"test": "jest && yarn test:generate",
"test:ci": "jest && yarn test:generate",
"test:update": "jest --updateSnapshot",
"test:generate": "node --test scripts/generate.test.js",
"test:generate:update": "node --test --test-update-snapshots scripts/generate.test.js"
},
"dependencies": {
"@storybook/global": "^5.0.0",
"@storybook/react": "9.0.14",
"@storybook/react": "0.0.0-pr-31819-sha-dcea463b",
"@storybook/react-native-theming": "^9.0.14",
"@storybook/react-native-ui": "^9.0.14",
"@storybook/react-native-ui-common": "^9.0.14",
"commander": "^8.2.0",
"dedent": "^1.5.1",
"deepmerge": "^4.3.0",
"esbuild-register": "^3.6.0",
"react-native-url-polyfill": "^2.0.0",
"setimmediate": "^1.0.5",
"type-fest": "~2.19",
"util": "^0.12.4",
"ws": "^8.18.0"
},
"devDependencies": {
"@babel/plugin-transform-class-static-block": "^7.27.1",
"@types/jest": "^29.4.3",
"@types/react": "~19.0.10",
"babel-jest": "^29.7.0",
"babel-preset-expo": "^12.0.9",
"jest": "^29.7.0",
"jest-expo": "~53.0.5",
"jest": "~29.7.0",
"jest-expo": "~53.0.9",
"jotai": "^2.6.2",
"react": "19.0.0",
"react-native": "0.79.2",
"react-native": "0.79.5",
"react-test-renderer": "^19.1.0",
"storybook": "9.0.14",
"tsup": "^7.2.0",
"storybook": "0.0.0-pr-31819-sha-dcea463b",
"tsup": "^8.5.0",
"typescript": "~5.8.3"
},
"peerDependencies": {
Expand All @@ -82,7 +86,7 @@
"react-native-gesture-handler": ">=2",
"react-native-reanimated": ">=2",
"react-native-safe-area-context": "*",
"storybook": "9.0.14"
"storybook": "0.0.0-pr-31819-sha-dcea463b"
},
"peerDependenciesMeta": {
"@gorhom/bottom-sheet": {
Expand All @@ -99,7 +103,7 @@
}
},
"engines": {
"node": ">=8.0.0"
"node": ">=22.17.0"
},
"publishConfig": {
"access": "public"
Expand Down
22 changes: 1 addition & 21 deletions packages/react-native/scripts/common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { globToRegexp, serverRequire } = require('storybook/internal/common');
const { globToRegexp } = require('storybook/internal/common');
const path = require('path');
const fs = require('fs');

Expand All @@ -18,12 +18,6 @@ const toRequireContext = (specifier) => {
};
};

function requireUncached(module) {
delete require.cache[require.resolve(module)];

return serverRequire(module);
}

const supportedExtensions = ['js', 'jsx', 'ts', 'tsx', 'cjs', 'mjs'];

function getFilePathExtension({ configPath }, fileName) {
Expand All @@ -38,18 +32,6 @@ function getFilePathExtension({ configPath }, fileName) {
return null;
}

function getMain({ configPath }) {
const fileExtension = getFilePathExtension({ configPath }, 'main');

if (fileExtension === null) {
throw new Error('main config file not found');
}

const mainPath = path.resolve(cwd, configPath, `main.${fileExtension}`);

return requireUncached(mainPath);
}

function ensureRelativePathHasDot(relativePath) {
return relativePath.startsWith('.') ? relativePath : `./${relativePath}`;
}
Expand Down Expand Up @@ -105,9 +87,7 @@ function getAddonName(addon) {

module.exports = {
toRequireContext,
requireUncached,
getFilePathExtension,
getMain,
ensureRelativePathHasDot,
getPreviewExists,
resolveAddonFile,
Expand Down
Loading