Skip to content

Commit 8f2d2a2

Browse files
authored
Merge branch 'next' into patch-1
2 parents 2896283 + a02544c commit 8f2d2a2

File tree

361 files changed

+41222
-45009
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+41222
-45009
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
- run:
3030
name: Install dependencies
3131
command: |
32-
yarn install --cwd example --frozen-lockfile
33-
yarn install --cwd docs --frozen-lockfile
34-
yarn install --frozen-lockfile
32+
sudo corepack enable
33+
yarn --cwd example --immutable
34+
yarn --cwd docs --immutable
35+
yarn --immutable
3536
- save_cache:
3637
key: dependencies-{{ checksum "package.json" }}
3738
paths:

.github/workflows/check-repro.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
if: ${{ github.event.label.name == 'bug' }}
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/github-script@v3
13+
- uses: actions/github-script@v7
1414
with:
1515
github-token: ${{ secrets.GITHUB_TOKEN }}
1616
script: |
@@ -23,14 +23,14 @@ jobs:
2323
'gm'
2424
);
2525
if (regex.test(body)) {
26-
await github.issues.addLabels({
26+
await github.rest.issues.addLabels({
2727
issue_number: context.issue.number,
2828
owner: context.repo.owner,
2929
repo: context.repo.repo,
3030
labels: ['repro provided'],
3131
});
3232
try {
33-
await github.issues.removeLabel({
33+
await github.rest.issues.removeLabel({
3434
issue_number: context.issue.number,
3535
owner: context.repo.owner,
3636
repo: context.repo.repo,
@@ -46,21 +46,21 @@ jobs:
4646
return;
4747
}
4848
const body = "Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a [snack.expo.dev](https://snack.expo.dev) link or link to a GitHub repo under your username).\n\nCan you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.";
49-
const comments = await github.issues.listComments({
49+
const comments = await github.rest.issues.listComments({
5050
issue_number: context.issue.number,
5151
owner: context.repo.owner,
5252
repo: context.repo.repo,
5353
});
5454
if (comments.data.some(comment => comment.body === body)) {
5555
return;
5656
}
57-
await github.issues.createComment({
57+
await github.rest.issues.createComment({
5858
issue_number: context.issue.number,
5959
owner: context.repo.owner,
6060
repo: context.repo.repo,
6161
body,
6262
});
63-
await github.issues.addLabels({
63+
await github.rest.issues.addLabels({
6464
issue_number: context.issue.number,
6565
owner: context.repo.owner,
6666
repo: context.repo.repo,

.github/workflows/publish-each-pr.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,42 @@ jobs:
88
if: github.event.pull_request.head.repo.full_name == 'callstack/react-native-paper'
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v1
11+
uses: actions/checkout@v4
1212

1313
- name: Setup Node.js
14-
uses: actions/setup-node@v1
14+
uses: actions/setup-node@v4
1515
with:
16-
node-version: 16.x
16+
node-version-file: .nvmrc
1717

1818
- name: Setup Expo
1919
uses: expo/expo-github-action@v7
2020
with:
2121
eas-version: latest
2222
token: ${{ secrets.EXPO_TOKEN }}
2323

24-
- name: Get yarn cache
24+
- name: Restore dependencies
2525
id: yarn-cache
26-
run: echo "::set-output name=dir::$(yarn cache dir)"
27-
28-
- name: Check yarn cache
29-
uses: actions/cache@v1
26+
uses: actions/cache/restore@v4
3027
with:
31-
path: ${{ steps.yarn-cache.outputs.dir }}
32-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28+
path: '**/node_modules'
29+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
3330
restore-keys: |
31+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
3432
${{ runner.os }}-yarn-
3533
3634
- name: Install dependencies
37-
run: yarn
35+
if: steps.yarn-cache.outputs.cache-hit != 'true'
36+
run: |
37+
sudo corepack enable
38+
yarn --cwd example --immutable
39+
yarn --immutable
40+
41+
- name: Cache dependencies
42+
if: steps.yarn-cache.outputs.cache-hit != 'true'
43+
uses: actions/cache/save@v4
44+
with:
45+
path: '**/node_modules'
46+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
3847

3948
- name: Publish Expo app
4049
working-directory: ./example
@@ -46,7 +55,7 @@ jobs:
4655
run: echo "EXPO_CONFIG=$(npx expo config --json)" >> $GITHUB_OUTPUT
4756

4857
- name: Comment on PR
49-
uses: actions/github-script@v3
58+
uses: actions/github-script@v7
5059
with:
5160
github-token: ${{ secrets.GITHUB_TOKEN }}
5261
script: |
@@ -62,7 +71,7 @@ jobs:
6271
<a href="${url}"><img src="https://qr.expo.dev/eas-update?appScheme=exp&projectId=${projectId}&channel=${channel}&runtimeVersion=exposdk:${sdkVersion}&host=u.expo.dev" height="200px" width="200px"></a>
6372
`;
6473
65-
const comments = await github.issues.listComments({
74+
const comments = await github.rest.issues.listComments({
6675
issue_number: context.issue.number,
6776
owner: context.repo.owner,
6877
repo: context.repo.repo,
@@ -72,7 +81,7 @@ jobs:
7281
return;
7382
}
7483
75-
github.issues.createComment({
84+
github.rest.issues.createComment({
7685
issue_number: context.issue.number,
7786
owner: context.repo.owner,
7887
repo: context.repo.repo,

.github/workflows/semantic-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Semantic Pull Request"
1+
name: Semantic Pull Request
22
on: [pull_request]
33

44
jobs:
@@ -10,4 +10,4 @@ jobs:
1010
env:
1111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1212
with:
13-
validateSingleCommit: true
13+
validateSingleCommit: true

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
stale:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/stale@v3
11+
- uses: actions/stale@v9
1212
with:
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}
1414
days-before-stale: 30

.github/workflows/updates.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: Setup Node.js
16-
uses: actions/setup-node@v2
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 16.x
18+
node-version-file: .nvmrc
1919

2020
- name: Setup Expo
2121
uses: expo/expo-github-action@v7
@@ -24,18 +24,29 @@ jobs:
2424
eas-version: latest
2525
token: ${{ secrets.EXPO_TOKEN }}
2626

27-
- name: Get yarn cache
28-
id: yarn-cache-path
29-
run: echo "::set-output name=dir::$(yarn cache dir)"
30-
31-
- uses: actions/cache@v2
27+
- name: Restore dependencies
28+
id: yarn-cache
29+
uses: actions/cache/restore@v4
3230
with:
33-
path: ${{ steps.yarn-cache-path.outputs.dir }}
34-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35-
restore-keys: ${{ runner.os }}-yarn-
31+
path: '**/node_modules'
32+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
33+
restore-keys: |
34+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
35+
${{ runner.os }}-yarn-
3636
3737
- name: Install dependencies
38-
run: yarn
38+
if: steps.yarn-cache.outputs.cache-hit != 'true'
39+
run: |
40+
sudo corepack enable
41+
yarn --cwd example --immutable
42+
yarn --immutable
43+
44+
- name: Cache dependencies
45+
if: steps.yarn-cache.outputs.cache-hit != 'true'
46+
uses: actions/cache/save@v4
47+
with:
48+
path: '**/node_modules'
49+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
3950

4051
- name: Publish Expo app update
4152
working-directory: ./example

.github/workflows/versions.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ jobs:
88
if: ${{ github.event.label.name == 'bug' }}
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: react-navigation/check-versions-action@v1.0.0
11+
- uses: react-navigation/check-versions-action@v1.1.0
1212
with:
1313
github-token: ${{ secrets.GITHUB_TOKEN }}
1414
required-packages: |
15-
react-native
1615
react-native-paper
17-
react-native-vector-icons
1816
optional-packages: |
19-
expo
20-
npm
21-
yarn
17+
@react-native-vector-icons/material-design-icons

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,11 @@ CHANGELOG.md
6464
lib/
6565

6666
.expo
67+
68+
# Yarn
69+
.yarn/*
70+
!.yarn/patches
71+
!.yarn/plugins
72+
!.yarn/releases
73+
!.yarn/sdks
74+
!.yarn/versions

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.15.0

0 commit comments

Comments
 (0)