Skip to content
Open
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
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ allprojects {
}
}

rootProject.ext.set("react.compileSdkVersion", 35)
rootProject.ext.set("react.targetSdkVersion", 35)
rootProject.ext.set("react.compileSdkVersion", 36)
rootProject.ext.set("react.targetSdkVersion", 36)
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
15 changes: 9 additions & 6 deletions example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
const path = require('path');
const escape = require('escape-string-regexp');
const exclusionList = require('metro-config/src/defaults/exclusionList');
const pak = require('../package.json');

const root = path.resolve(__dirname, '..');
Expand All @@ -10,6 +9,8 @@ const modules = Object.keys({
...pak.peerDependencies,
});

const defaultConfig = getDefaultConfig(__dirname);

/**
* Metro configuration
* https://reactnative.dev/docs/metro
Expand All @@ -23,12 +24,14 @@ const config = {
// We need to make sure that only one version is loaded for peerDependencies
// So we block them at the root, and alias them to the versions in example's node_modules
resolver: {
blacklistRE: exclusionList(
modules.map(
blockList: [
...modules.map(
(m) =>
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`),
new RegExp(
`^${escape(path.join(root, 'node_modules', m))}[\\\\/].*$`,
),
),
),
].concat(defaultConfig.resolver.blockList),

extraNodeModules: modules.reduce((acc, name) => {
acc[name] = path.join(__dirname, 'node_modules', name);
Expand All @@ -46,4 +49,4 @@ const config = {
},
};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);
module.exports = mergeConfig(defaultConfig, config);
34 changes: 17 additions & 17 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,36 @@
"test": "jest"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^2.2.0",
"@react-navigation/bottom-tabs": "^6.6.1",
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.11.0",
"@react-navigation/stack": "^6.3.21",
"react": "19.1.0",
"react-native": "^0.80.1",
"react-native-gesture-handler": "^2.26.0",
"@react-native-async-storage/async-storage": "^3.1.1",
"@react-navigation/bottom-tabs": "^7.18.2",
"@react-navigation/native": "^7.3.3",
"@react-navigation/native-stack": "^7.17.5",
"@react-navigation/stack": "^7.10.5",
"react": "19.2.3",
"react-native": "^0.85.0",
"react-native-gesture-handler": "^3.0.2",
"react-native-safe-area-context": "^5.4.0",
"react-native-screens": "^4.11.1"
"react-native-screens": "^4.25.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/cli": "^19.0.0",
"@react-native/babel-preset": "^0.80.1",
"@react-native/eslint-config": "^0.80.1",
"@react-native/metro-config": "^0.80.1",
"@react-native/typescript-config": "0.76.1",
"@react-native-community/cli": "^20.1.0",
"@react-native/babel-preset": "^0.85.0",
"@react-native/eslint-config": "^0.85.0",
"@react-native/metro-config": "^0.85.0",
"@react-native/typescript-config": "0.85.0",
"@rnx-kit/metro-config": "^2.0.1",
"@types/react": "^18.3.11",
"@types/react": "~19.2.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"prettier": "2.8.8",
"react-native-test-app": "^4.3.15",
"react-native-test-app": "^5.3.2",
"typescript": "5.6.3"
},
"engines": {
"node": ">=18"
"node": ">=22.11.0"
}
}
Loading