Skip to content
Merged
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
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@rspress/core": "^2.0.13",
"@rspress/core": "^2.0.20",
"@shikijs/transformers": "^4.1.0",
"@types/node": "^24",
"@types/react": "^19.2.0",
"react": "19.2.3",
"react-dom": "19.2.3",
"@types/react": "^19.3.0",
"react": "19.3.0",
"react-dom": "19.3.0",
"typescript": "^6.0.2"
}
}
2 changes: 1 addition & 1 deletion example/AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Expo HAS CHANGED

Read the exact versioned docs at https://docs.expo.dev/versions/v55.0.0/ before writing any code.
Read the exact versioned docs at https://docs.expo.dev/versions/v58.0.0/ before writing any code.
16 changes: 11 additions & 5 deletions example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"plugins": [
[
"expo-splash-screen",
{
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff",
"enableFullScreenImage_legacy": true
}
]
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "reactnativeswipedeck.example"
Expand Down
4 changes: 0 additions & 4 deletions example/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@ module.exports = function (api) {

return {
presets: ['babel-preset-expo'],
plugins: [
// react-native-worklets/plugin has to be listed last.
'react-native-worklets/plugin',
],
};
};
2 changes: 1 addition & 1 deletion example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const { getDefaultConfig } = require('@expo/metro-config');
const { getDefaultConfig } = require('expo/metro-config');
const { withMetroConfig } = require('react-native-monorepo-config');

const root = path.resolve(__dirname, '..');
Expand Down
20 changes: 12 additions & 8 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@
"web": "expo start --web"
},
"dependencies": {
"@expo/dom-webview": "~58.0.2",
"@react-native-motion-kit/swipe-deck": "workspace:*",
"expo": "~55.0.26",
"expo-status-bar": "~55.0.6",
"react": "19.2.3",
"react-native": "0.83.6",
"react-native-gesture-handler": "^2.31.2",
"react-native-reanimated": "^4.4.0",
"react-native-worklets": "^0.10.0"
"expo": "~58.0.19",
"expo-splash-screen": "~58.0.11",
"expo-status-bar": "~58.0.4",
"react": "19.3.0",
"react-dom": "19.3.0",
"react-native": "0.88.0",
"react-native-gesture-handler": "~3.3.0",
"react-native-reanimated": "4.7.1",
"react-native-worklets": "0.13.0"
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@react-native/metro-config": "0.83.6",
"@react-native/metro-config": "0.88.0",
"@types/babel__core": "^7",
"babel-preset-expo": "~58.0.20",
"react-native-monorepo-config": "^0.3.5"
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const pnpmReactNativePackages = [
module.exports = {
modulePathIgnorePatterns: ['<rootDir>/example/node_modules', '<rootDir>/lib/'],
preset: '@react-native/jest-preset',
resolver: 'react-native-worklets/jest/resolver',
resolver: '<rootDir>/jest.resolver.js',
setupFiles: ['react-native-gesture-handler/jestSetup.js'],
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
transformIgnorePatterns: [
Expand Down
22 changes: 22 additions & 0 deletions jest.resolver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const path = require('node:path');
const reanimatedResolver = require('react-native-reanimated/jest/resolver');

module.exports = (request, options) => {
const packagePath = options.basedir.split(`${path.sep}node_modules${path.sep}`).at(-1);

if (
!options.basedir.includes(`${path.sep}.pnpm${path.sep}`) ||
!options.basedir.includes('react-native-worklets') ||
packagePath.includes('react-native-worklets')
) {
return reanimatedResolver(request, options);
}

// A pnpm peer-context name is not the package making this request.
return reanimatedResolver(request, {
...options,
basedir: packagePath,
defaultResolver: (name, resolverOptions) =>
options.defaultResolver(name, { ...resolverOptions, basedir: options.basedir }),
});
};
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,25 @@
"@changesets/cli": "^2.31.0",
"@commitlint/config-conventional": "^20.5.0",
"@jest/globals": "29.7.0",
"@react-native/babel-preset": "0.85.0",
"@react-native/jest-preset": "0.85.0",
"@react-native/metro-config": "0.85.0",
"@testing-library/react-native": "^14.0.0",
"@react-native/babel-preset": "0.88.0",
"@react-native/jest-preset": "0.88.0",
"@react-native/metro-config": "0.88.0",
"@testing-library/react-native": "^14.1.0",
"@types/babel__core": "^7",
"@types/react": "^19.2.0",
"@types/react": "^19.3.0",
"commitlint": "^20.5.0",
"del-cli": "^7.0.0",
"jest": "29.7.0",
"lefthook": "^2.1.4",
"oxfmt": "0.52.0",
"oxfmt": "0.67.0",
"oxlint": "1.67.0",
"react": "19.2.3",
"react-native": "0.85.0",
"react": "19.3.0",
"react-native": "0.88.0",
"react-native-builder-bob": "^0.41.0",
"react-native-gesture-handler": "^2.28.0",
"react-native-reanimated": "^4.1.0",
"react-native-worklets": "^0.10.0",
"test-renderer": "^1.2.0",
"react-native-gesture-handler": "~3.3.0",
"react-native-reanimated": "4.7.1",
"react-native-worklets": "0.13.0",
"test-renderer": "^1.3.1",
"turbo": "^2.8.21",
"typescript": "^6.0.2"
},
Expand Down
Loading
Loading