Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
e3876da
Update Expo developers discord link (#1832)
byCedric Jan 18, 2022
95e70b0
Bump follow-redirects from 1.13.0 to 1.14.7 in /docs (#1827)
dependabot[bot] Jan 18, 2022
2c5c3ef
Bump shelljs from 0.8.4 to 0.8.5 in /docs (#1828)
dependabot[bot] Jan 18, 2022
bcd7a19
Update template (#1834)
j-piasecki Jan 19, 2022
a6591e6
Use the speed option (#1835)
j-piasecki Jan 19, 2022
0f18253
Export change event payload types (#1846)
jgonet Jan 27, 2022
dfd4c5a
Remove unused devDependencies (#1847)
jgonet Jan 27, 2022
226cdab
Remove unused implementations on Android (#1586)
jgonet Jan 27, 2022
f36babf
Reorganize docs structure (#1850)
jgonet Jan 28, 2022
8a5d3bd
Fix broken links to example (#1854)
jgonet Jan 28, 2022
ceec9f8
Fix race condition between the orchestrator and the registry (#1684)
j-piasecki Jan 31, 2022
0a444f0
Add bot for triaging issues (#1859)
kacperkapusciak Feb 1, 2022
c094533
Rebuild Reanimated event only when needed (#1856)
j-piasecki Feb 2, 2022
e932a48
Fix tvOS compilation errors (#1857)
j-piasecki Feb 2, 2022
48df239
Add direction to Swipeable callbacks (#1608)
jgonet Feb 3, 2022
273fa03
Add ability to fire gesture events in testing (#1844)
jgonet Feb 3, 2022
0a47981
Update React Native version in the Example app to 0.67.2 (#1863)
j-piasecki Feb 4, 2022
e249dbd
Update LICENSE
kmagiera Feb 7, 2022
7ce194f
Add 'runOnJS' modifier to gestures (#1862)
j-piasecki Feb 18, 2022
96f6451
Bump url-parse from 1.5.3 to 1.5.7 in /docs (#1885)
dependabot[bot] Feb 21, 2022
30d8412
Bump url-parse from 1.5.3 to 1.5.7 (#1884)
dependabot[bot] Feb 21, 2022
23f95a1
Don't unpack props in GestureHandlerRootView (#1872)
tomekzaw Feb 21, 2022
e82b7e6
Bump ajv from 6.10.0 to 6.12.6 in /ci/e2e (#1875)
dependabot[bot] Feb 21, 2022
de17754
Bump follow-redirects from 1.14.7 to 1.14.8 in /docs (#1874)
dependabot[bot] Feb 21, 2022
4e21787
Use `subscription.remove()` instead of `EventEmitter.removeListener()…
j-piasecki Feb 22, 2022
06089fa
Unify tags in messages from Gesture Handler (#1889)
j-piasecki Feb 22, 2022
1a93330
Update close-when-stale.yml (#1892)
jgonet Feb 22, 2022
2a618b7
Fix TypeScript (#1882)
j-piasecki Feb 22, 2022
433f00a
Fix utils on web (#1896)
j-piasecki Feb 28, 2022
e693176
Import fireEvent conditionally (#1895)
j-piasecki Feb 28, 2022
44ee0c0
Add docs for `runOnJS` (#1900)
j-piasecki Feb 28, 2022
8a37800
Restore original Podfile in example app (#1903)
tomekzaw Mar 1, 2022
d534462
[Fabric] Add FabricExample (#1891)
tomekzaw Mar 1, 2022
0d1a917
[Fabric] Gesture Handler for Fabric (#1893)
tomekzaw Mar 1, 2022
ce1fec7
Add modified `ScaleGestureDetector` from AOSP (#1879)
j-piasecki Mar 1, 2022
242c9af
Prepare for 2.3.0 release (#1902)
j-piasecki Mar 1, 2022
d53da9e
Fix broken link to the Example app section in the docs (#1904)
j-piasecki Mar 1, 2022
0374366
Add Fabric section in the docs (#1905)
j-piasecki Mar 1, 2022
b041879
Update GestureHandlerRootView styles in installation.md in docs (#1901)
ramyareye Mar 2, 2022
2f8c370
Bump plist from 3.0.1 to 3.0.4 in /ci/e2e (#1907)
dependabot[bot] Mar 2, 2022
da99f9f
Bump url-parse from 1.5.7 to 1.5.10 (#1899)
dependabot[bot] Mar 2, 2022
e413bcc
Bump url-parse from 1.5.7 to 1.5.10 in /docs (#1898)
dependabot[bot] Mar 2, 2022
dee0636
Bump prismjs from 1.25.0 to 1.27.0 in /docs (#1897)
dependabot[bot] Mar 2, 2022
807260a
Fix ripple animation on touchables in some cases (#1877)
j-piasecki Mar 2, 2022
7a785f1
Fix StyleSheet import in `RNGestureHandlerButtonNativeComponent.js` (…
j-piasecki Mar 2, 2022
7ecb044
Fix overriding `testID` when `createHandler` props do not have one as…
virdesai Mar 3, 2022
af5920b
chore: bump screens to 3.13.1 in FabricExample (#1911)
kacperkapusciak Mar 3, 2022
9532e58
Bump version to 2.3.1 (#1921)
j-piasecki Mar 9, 2022
dcd6ed3
Add manual gestures example & Fix Drag and drop example (#1926)
alantoa Mar 14, 2022
9569b56
Expand example code for PanGestureHandler in the docs (#1925)
RWOverdijk Mar 14, 2022
e860c60
Use native driver by default, add prop for it (#1924)
j-piasecki Mar 14, 2022
1f4d13a
Remove `jestUtils` from the main `index.ts` and move it to separate `…
j-piasecki Mar 14, 2022
aebd2f5
Bump version to 2.3.2 (#1928)
j-piasecki Mar 14, 2022
2094d9c
Merge branch 'wp-fork' into wp-fork-2.3.2
fluiddot Apr 8, 2022
ef4aae4
Fix build.gradle after solving merge conflicts
fluiddot Apr 8, 2022
d22132b
Generate tarball
fluiddot Apr 8, 2022
7049228
Fix @types/react-native version
fluiddot Apr 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
"plugins": ["jest"],
"ignorePatterns": ["lib/**/*"],
"rules": {
// removed in new jest-eslint-plugin, referenced in satya config
"jest/no-truthy-falsy": "off",
"jest/valid-describe": "off",

"jest/expect-expect": [
"warn",
{ "assertFunctionNames": ["expect*", "assert*"] }
],
// temporary, remove after we type internals better
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
Expand All @@ -29,6 +37,7 @@
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/named": "off",
"react/sort-comp": "off",
"react/no-unused-prop-types": "warn",
"prefer-const": [
"error",
{
Expand Down
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ https://github.com/software-mansion/react-native-gesture-handler/discussions
Tell us what's happening here.
-->

### Platforms

- [ ] iOS
- [ ] Android
- [ ] Web

### Screenshots

## Steps To Reproduce
Expand Down Expand Up @@ -46,3 +52,4 @@ List other libraries if relevant.
- React:
- React Native:
- React Native Gesture Handler:
- React Native Reanimated:
41 changes: 41 additions & 0 deletions .github/workflows/close-when-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Check for stale issues
on:
schedule:
- cron: '37 21 * * *' # at 21:37 every day
issues:
types: [edited]
issue_comment:
types: [created, edited]
workflow_dispatch:

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Actions
run: yarn install

- name: Close when stale
uses: ./close-when-stale
with:
close-when-stale-label: 'Close when stale'
days-to-close: 20
43 changes: 43 additions & 0 deletions .github/workflows/needs-more-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Check issue template
on:
issues:
types: [opened, edited]

jobs:
main:
runs-on: ubuntu-latest
concurrency:
group: needs-more-info-${{ github.event.issue.number }}
cancel-in-progress: true
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Actions
run: yarn install

- name: Needs More Info
uses: ./needs-more-info
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
needs-more-info-label: 'Missing info'
required-sections: 'Description;Platforms;Steps To Reproduce;Snack or minimal code example;Package versions'
needs-more-info-response: "Hey! 👋 \n\nIt looks like you've omitted a few important sections from the issue template."
# This action also appends something like: "Please complete X, Y and Z sections." to the response.
# Code responsible for this can be found here: https://github.com/software-mansion-labs/swmansion-bot/blob/main/needs-more-info/MissingSectionsFormatter.js
44 changes: 44 additions & 0 deletions .github/workflows/needs-repro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Check for reproduction
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited, deleted]

jobs:
main:
runs-on: ubuntu-latest
concurrency:
group: needs-repro-${{ github.event.issue.number }}
cancel-in-progress: true
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Actions
run: yarn install

- name: Needs Repro
uses: ./needs-repro
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
needs-repro-label: 'Missing repro'
needs-repro-response: "Hey! 👋 \n\nThe issue doesn't seem to contain a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example).\n\nCould you provide a snippet of code, a [snack](https://snack.expo.dev/) or a link to a GitHub repository that reproduces the problem?"
repro-provided-label: 'Repro provided'
check-issues-only-created-after: 2022-02-01
39 changes: 39 additions & 0 deletions .github/workflows/platforms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Check for platforms
on:
issues:
types: [opened, edited]

jobs:
main:
runs-on: ubuntu-latest
concurrency:
group: platforms-${{ github.event.issue.number }}
cancel-in-progress: true
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'software-mansion-labs/swmansion-bot'
ref: stable

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Actions
run: yarn install

- name: Platforms
uses: ./platforms
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
platforms-with-labels: '{"Android": "Platform: Android", "iOS": "Platform: iOS", "Web": "Platform: Web"}'
6 changes: 6 additions & 0 deletions FabricExample/.buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
4 changes: 4 additions & 0 deletions FabricExample/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
};
67 changes: 67 additions & 0 deletions FabricExample/.flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

.*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*

[include]

[libs]
node_modules/react-native/interface.js
node_modules/react-native/flow/

[options]
emoji=true

exact_by_default=true

format.bracket_spacing=false

module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

munge_underscores=true

module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.170.0
61 changes: 61 additions & 0 deletions FabricExample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/
9 changes: 9 additions & 0 deletions FabricExample/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"jsxBracketSameLine": true,
"printWidth": 80,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"quoteProps": "consistent"
}
1 change: 1 addition & 0 deletions FabricExample/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading