Skip to content

Commit 87f4a54

Browse files
committed
feat: upgrade to react nvigation 7
1 parent dc81d13 commit 87f4a54

File tree

21 files changed

+7785
-10237
lines changed

21 files changed

+7785
-10237
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111

1212
- name: Cache dependencies
1313
id: yarn-cache
14-
uses: actions/cache@v3
14+
uses: actions/cache@v4
1515
with:
1616
path: |
1717
**/node_modules

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Run unit tests
3636
run: yarn test --maxWorkers=2 --coverage
3737

38-
build:
38+
build-library:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Checkout

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v22.18.0

.yarn/releases/yarn-4.0.1.cjs

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

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
nmHoistingLimits: workspaces
2+
13
nodeLinker: node-modules
2-
nmHoistingLimits: 'workspaces'
34

4-
yarnPath: .yarn/releases/yarn-4.0.1.cjs
5+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

babel.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
overrides: [
3+
{
4+
exclude: /\/node_modules\//,
5+
presets: ['module:react-native-builder-bob/babel-preset'],
6+
},
7+
{
8+
include: /\/node_modules\//,
9+
presets: ['module:@react-native/babel-preset'],
10+
},
11+
],
312
};

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { defineConfig, globalIgnores } from 'eslint/config';
2+
import { jest, react, recommended } from 'eslint-config-satya164';
3+
import sort from 'eslint-plugin-simple-import-sort';
4+
5+
export default defineConfig([
6+
recommended,
7+
react,
8+
jest,
9+
10+
globalIgnores([
11+
'**/node_modules/',
12+
'**/coverage/',
13+
'**/dist/',
14+
'**/lib/',
15+
'**/.expo/',
16+
'**/.yarn/',
17+
'**/.vscode/',
18+
]),
19+
20+
{
21+
plugins: {
22+
'simple-import-sort': sort,
23+
},
24+
},
25+
]);

example/app.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"name": "react-navigation-native-modal-example",
3-
"displayName": "React Navigation Native Modal Example",
42
"expo": {
53
"name": "react-navigation-native-modal-example",
64
"slug": "react-navigation-native-modal-example",
75
"description": "Example app for react-navigation-native-modal",
8-
"privacy": "public",
96
"version": "1.0.0",
107
"platforms": [
118
"ios",

example/babel.config.js

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
const path = require('path');
2-
const pak = require('../package.json');
2+
const { getConfig } = require('react-native-builder-bob/babel-config');
3+
const pkg = require('../package.json');
34

4-
module.exports = function (api) {
5-
api.cache(true);
5+
const root = path.resolve(__dirname, '..');
66

7-
return {
7+
module.exports = getConfig(
8+
{
89
presets: ['babel-preset-expo'],
9-
plugins: [
10-
[
11-
'module-resolver',
12-
{
13-
alias: {
14-
// For development, we want to alias the library to the source
15-
[pak.name]: path.join(__dirname, '..', pak.source),
16-
},
17-
},
18-
],
19-
],
20-
};
21-
};
10+
},
11+
{ root, pkg }
12+
);

0 commit comments

Comments
 (0)