Skip to content

Commit 100803f

Browse files
committed
try
1 parent be5cc3a commit 100803f

File tree

6 files changed

+2355
-7952
lines changed

6 files changed

+2355
-7952
lines changed

.github/workflows/publish-canary.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Publish canary
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
branches: ['main']
67

@@ -12,14 +13,14 @@ jobs:
1213
- uses: actions/checkout@v3
1314
- uses: actions/setup-node@v3
1415
with:
15-
node-version: 18
16-
cache: 'yarn'
16+
node-version: 22
17+
cache: 'bun'
1718
env:
1819
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1920
- name: Install deps
20-
run: yarn install
21+
run: bun install
2122
- name: Publish canary
2223
env:
2324
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2425
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25-
run: yarn release:canary
26+
run: bun release:canary

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
run: git fetch --unshallow --tags
1717
- uses: actions/setup-node@v3
1818
with:
19-
node-version: 18
20-
cache: 'yarn'
19+
node-version: 22
20+
cache: 'bun'
2121
env:
2222
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2323
- name: Install deps
24-
run: yarn install
24+
run: bun install
2525
- name: Release new version
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29-
run: yarn release
29+
run: bun release

README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -135,20 +135,17 @@ console.log('layout: ', layout)
135135
### `useRefresh`
136136

137137
```js
138-
import { useRefresh } from '@react-native-community/hooks'
138+
import {useRefresh} from '@react-native-community/hooks'
139139

140140
const fetch = () => {
141-
return new Promise((resolve) => setTimeout(resolve, 500))
141+
return new Promise((resolve) => setTimeout(resolve, 500))
142142
}
143143

144-
const { isRefreshing, onRefresh } = useRefresh(fetch);
144+
const {isRefreshing, onRefresh} = useRefresh(fetch)
145145

146-
<ScrollView
147-
refreshControl= {
148-
<RefreshControl
149-
refreshing={isRefreshing}
150-
onRefresh={onRefresh}
151-
/>
146+
;<ScrollView
147+
refreshControl={
148+
<RefreshControl refreshing={isRefreshing} onRefresh={onRefresh} />
152149
}
153150
/>
154151
```

0 commit comments

Comments
 (0)