Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Commit 89280e1

Browse files
committed
chore: master -> main
1 parent b75c52e commit 89280e1

File tree

9 files changed

+76
-25
lines changed

9 files changed

+76
-25
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ For Syntax Highlighting check this [link](https://help.github.com/en/articles/cr
3737
| software | version
3838
| ---------------------------- | -------
3939
| ios or android |
40+
| expo |
4041
| react-native |
4142
| react-native-tab-view |
4243
| react-native-gesture-handler |

.github/workflows/expo-preview.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
publish:
66
name: Install and publish
77
runs-on: ubuntu-latest
8-
if: github.event.pull_request.head.repo.owner.login == 'react-native-community'
8+
if: github.event.pull_request.head.repo.owner.login == 'satya164'
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v1
11+
uses: actions/checkout@v2
1212

1313
- name: Setup Node.js
1414
uses: actions/setup-node@v1
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Restore yarn cache
2727
id: yarn-cache
28-
uses: actions/cache@master
28+
uses: actions/cache@v2
2929
with:
3030
path: '**/node_modules'
3131
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -39,14 +39,33 @@ jobs:
3939
- name: Publish Expo app
4040
working-directory: ./example
4141
run: expo publish --release-channel=pr-${{ github.event.number }}
42+
env:
43+
EXPO_USE_DEV_SERVER: true
4244

4345
- name: Get expo link
4446
id: expo
4547
run: echo "::set-output name=path::@satya164/react-native-tab-view-demos?release-channel=pr-${{ github.event.number }}
4648

4749
- name: Comment on PR
48-
uses: unsplash/comment-on-pr@master
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
uses: actions/github-script@v2
5151
with:
52-
msg: The Expo app for the example from this branch is ready!<br><br>[expo.io/${{ steps.expo.outputs.path }}](https://expo.io/${{ steps.expo.outputs.path }})<br><br><a href="https://exp.host/${{ steps.expo.outputs.path }}"><img src="https://api.qrserver.com/v1/create-qr-code/?size=400x400&data=exp://exp.host/${{ steps.expo.outputs.path }}" height="200px" width="200px"></a>.
52+
github-token: ${{secrets.GITHUB_TOKEN}}
53+
script: |
54+
const body = 'The Expo app for the example from this branch is ready!\n\n[expo.io/${{ steps.expo.outputs.path }}](https://expo.io/${{ steps.expo.outputs.path }})\n\n<a href="https://exp.host/${{ steps.expo.outputs.path }}"><img src="https://api.qrserver.com/v1/create-qr-code/?size=400x400&data=exp://exp.host/${{ steps.expo.outputs.path }}" height="200px" width="200px"></a>';
55+
56+
const comments = await github.issues.listComments({
57+
issue_number: context.issue.number,
58+
owner: context.repo.owner,
59+
repo: context.repo.repo,
60+
});
61+
62+
if (comments.data.some(comment => comment.body === body)) {
63+
return;
64+
}
65+
66+
github.issues.createComment({
67+
issue_number: context.issue.number,
68+
owner: context.repo.owner,
69+
repo: context.repo.repo,
70+
body
71+
})

.github/workflows/expo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Expo Publish
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66

77
jobs:
88
publish:
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Restore yarn cache
2929
id: yarn-cache
30-
uses: actions/cache@master
30+
uses: actions/cache@v2
3131
with:
3232
path: '**/node_modules'
3333
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

.github/workflows/triage.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ jobs:
88
runs-on: ubuntu-latest
99
if: github.event.label.name == 'needs more info'
1010
steps:
11-
- uses: actions/checkout@v2
1211
- uses: actions/github-script@v2
1312
with:
1413
github-token: ${{secrets.GITHUB_TOKEN}}
@@ -24,7 +23,6 @@ jobs:
2423
runs-on: ubuntu-latest
2524
if: github.event.label.name == 'needs repro'
2625
steps:
27-
- uses: actions/checkout@v2
2826
- uses: actions/github-script@v2
2927
with:
3028
github-token: ${{secrets.GITHUB_TOKEN}}
@@ -33,5 +31,35 @@ jobs:
3331
issue_number: context.issue.number,
3432
owner: context.repo.owner,
3533
repo: context.repo.repo,
36-
body: "Hey! Thanks for opening the issue. Can you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible.\n\nThe easiest way to provide a repro is on [snack.expo.io](https://snack.expo.io). If it's not possible to repro it on [snack.expo.io](https://snack.expo.io), then you can also provide the repro in a GitHub repository."
34+
body: "Hey! Thanks for opening the issue. Can you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible.\n\nThe easiest way to provide a repro is on [snack.expo.io](https://snack.expo.io). If it's not possible to repro it on [snack.expo.io](https://snack.expo.io), then please provide the repro in a GitHub repository."
35+
})
36+
37+
react-native-reanimated:
38+
runs-on: ubuntu-latest
39+
if: github.event.label.name == 'library:react-native-reanimated'
40+
steps:
41+
- uses: actions/github-script@v2
42+
with:
43+
github-token: ${{secrets.GITHUB_TOKEN}}
44+
script: |
45+
github.issues.createComment({
46+
issue_number: context.issue.number,
47+
owner: context.repo.owner,
48+
repo: context.repo.repo,
49+
body: "Hey! Thanks for opening the issue. The issue tracker is intended for only tracking bug reports in React Navigation. Seems you have an issue related to `react-native-reanimated` library. Please post your issue in [this repo](https://github.com/software-mansion/react-native-reanimated) so that it's notified to the maintainers of that library."
50+
})
51+
52+
react-native-gesture-handler:
53+
runs-on: ubuntu-latest
54+
if: github.event.label.name == 'library:react-native-gesture-handler'
55+
steps:
56+
- uses: actions/github-script@v2
57+
with:
58+
github-token: ${{secrets.GITHUB_TOKEN}}
59+
script: |
60+
github.issues.createComment({
61+
issue_number: context.issue.number,
62+
owner: context.repo.owner,
63+
repo: context.repo.repo,
64+
body: "Hey! Thanks for opening the issue. The issue tracker is intended for only tracking bug reports in React Navigation. Seems you have an issue related to `react-native-gesture-handler` library. Please post your issue in [this repo](https://github.com/software-mansion/react-native-gesture-handler) so that it's notified to the maintainers of that library."
3765
})

.github/workflows/versions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
with:
1212
github-token: ${{ secrets.GITHUB_TOKEN }}
1313
required-packages: |
14+
react-native
1415
react-native-tab-view
1516
react-native-gesture-handler
1617
react-native-reanimated
18+
optional-packages: |
19+
expo

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
A cross-platform Tab View component for React Native.
88

99
- [Run the example app to see it in action](https://expo.io/@satya164/react-native-tab-view-demos).
10-
- Checkout the [example/](https://github.com/react-native-community/react-native-tab-view/tree/master/example) folder for source code.
10+
- Checkout the [example/](https://github.com/satya164/react-native-tab-view/tree/main/example) folder for source code.
1111

1212
## Features
1313

@@ -20,7 +20,7 @@ A cross-platform Tab View component for React Native.
2020

2121
## Demo
2222

23-
<a href="https://raw.githubusercontent.com/satya164/react-native-tab-view/master/demo/demo.mp4"><img src="https://raw.githubusercontent.com/satya164/react-native-tab-view/master/demo/demo.gif" width="360"></a>
23+
<a href="https://raw.githubusercontent.com/satya164/react-native-tab-view/main/demo/demo.mp4"><img src="https://raw.githubusercontent.com/satya164/react-native-tab-view/main/demo/demo.gif" width="360"></a>
2424

2525
## Installation
2626

@@ -50,7 +50,7 @@ Next, we need to link these libraries. The steps depends on your React Native ve
5050

5151
- **React Native 0.60 and higher**
5252

53-
On newer versions of React Native, [linking is automatic](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md).
53+
On newer versions of React Native, [linking is automatic](https://github.com/react-native-community/cli/blob/main/docs/autolinking.md).
5454

5555
To complete the linking on iOS, make sure you have [Cocoapods](https://cocoapods.org/) installed. Then run:
5656

@@ -297,7 +297,7 @@ import { TabView, ScrollPager } from 'react-native-tab-view';
297297
```
298298

299299
Also, you can use `ViewPager`-based pager with [`React Native Tab View ViewPager Adapter
300-
`](https://github.com/software-mansion/react-native-tab-view-viewpager-adapter).
300+
`](https://github.com/software-mansion/react-native-tab-view-viewpager-adapter).
301301

302302
```js
303303
import { TabView } from 'react-native-tab-view';
@@ -621,7 +621,7 @@ Custom pager which can we used inside `renderPager` prop. It is based on ScrollV
621621
It accepts the same set of props as default pager extended with one addition:
622622

623623
##### ovescroll
624-
When `true`, the scroll view bounces when it reaches the end of the content. The default value is `false`.
624+
When `true`, the scroll view bounces when it reaches the end of the content. The default value is `false`.
625625

626626

627627
## Using with other libraries
@@ -630,7 +630,7 @@ When `true`, the scroll view bounces when it reaches the end of the content. The
630630

631631
If you want to integrate the tab view with React Navigation's navigation system, e.g. want to be able to navigate to a tab using `navigation.navigate` etc, you can use the following official integrations:
632632

633-
- [@react-navigation/material-top-tabs](https://github.com/react-navigation/navigation-ex/tree/master/packages/material-top-tabs) for React Navigation 5
633+
- [@react-navigation/material-top-tabs](https://github.com/react-navigation/react-navigation/tree/main/packages/material-top-tabs) for React Navigation 5
634634
- [react-navigation-tabs](https://github.com/react-navigation/react-navigation-tabs) for React Navigation 4
635635

636636
Note that some functionalities are not available with the React Navigation 4 integration because of the limitations in React Navigation. For example, it's possible to dynamically change the rendered tabs.
@@ -816,8 +816,8 @@ Remember to add tests for your change if possible.
816816

817817
<!-- badges -->
818818

819-
[build-badge]: https://img.shields.io/circleci/project/github/react-native-community/react-native-tab-view/master.svg?style=flat-square
820-
[build]: https://circleci.com/gh/react-native-community/react-native-tab-view
819+
[build-badge]: https://img.shields.io/circleci/project/github/satya164/react-native-tab-view/main.svg?style=flat-square
820+
[build]: https://circleci.com/gh/satya164/react-native-tab-view
821821
[version-badge]: https://img.shields.io/npm/v/react-native-tab-view.svg?style=flat-square
822822
[package]: https://www.npmjs.com/package/react-native-tab-view
823823
[license-badge]: https://img.shields.io/npm/l/react-native-tab-view.svg?style=flat-square

example/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"expo": {
33
"name": "React Native Tab View Demos",
4-
"description": "Demonstrates the various capabilities of react-native-tab-view: https://github.com/react-native-community/react-native-tab-view",
4+
"description": "Demonstrates the various capabilities of react-native-tab-view: https://github.com/satya164/react-native-tab-view",
55
"slug": "react-native-tab-view-demos",
66
"privacy": "public",
77
"version": "1.0.0",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
],
3636
"repository": {
3737
"type": "git",
38-
"url": "git+https://github.com/react-native-community/react-native-tab-view.git"
38+
"url": "git+https://github.com/satya164/react-native-tab-view.git"
3939
},
4040
"author": "Satyajit Sahoo <satyajit.happy@gmail.com> (https://github.com/satya164/)",
4141
"license": "MIT",
4242
"bugs": {
43-
"url": "https://github.com/react-native-community/react-native-tab-view/issues"
43+
"url": "https://github.com/satya164/react-native-tab-view/issues"
4444
},
45-
"homepage": "https://github.com/react-native-community/react-native-tab-view#readme",
45+
"homepage": "https://github.com/satya164/react-native-tab-view#readme",
4646
"devDependencies": {
4747
"@commitlint/config-conventional": "^9.1.1",
4848
"@expo/vector-icons": "^10.2.0",

src/TabBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export default class TabBar<T extends Route> extends React.Component<
296296

297297
// If we don't delay this state update, the UI gets stuck in weird state
298298
// Maybe an issue in Reanimated?
299-
// https://github.com/react-native-community/react-native-tab-view/issues/877
299+
// https://github.com/satya164/react-native-tab-view/issues/877
300300
// Cancel any pending callbacks, since we're scheduling a new one
301301
this.cancelNextFrameCb?.();
302302
this.cancelNextFrameCb = scheduleInNextFrame(() =>

0 commit comments

Comments
 (0)