Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 06051c0

Browse files
authored
Merge pull request #10 from wordpress-mobile/upstream-2.2.4
Update `trunk` with upstream version `2.2.4`
2 parents c3fee6b + 902aba8 commit 06051c0

569 files changed

Lines changed: 39681 additions & 15536 deletions

File tree

Some content is hidden

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

.eslintrc.js

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
11
module.exports = {
2-
parser: 'babel-eslint',
2+
root: true,
3+
parser: '@typescript-eslint/parser',
34
extends: [
45
'standard',
6+
'plugin:@typescript-eslint/recommended',
57
'prettier',
68
'prettier/flowtype',
79
'prettier/react',
810
'prettier/standard',
11+
'plugin:import/typescript',
912
],
10-
plugins: ['react', 'react-native', 'import', 'jest'],
13+
plugins: ['react', 'react-native', 'import', 'jest', '@typescript-eslint'],
1114
env: {
1215
'react-native/react-native': true,
1316
'jest/globals': true,
1417
},
15-
rules: {
16-
'import/no-unresolved': 2,
17-
'react/jsx-uses-vars': 2,
18-
'react/jsx-uses-react': 2,
19-
},
2018
settings: {
21-
'import/core-modules': ['react-native-reanimated'],
19+
'import/resolver': {
20+
'babel-module': {},
21+
},
22+
},
23+
rules: {
24+
'import/no-unresolved': 'error',
25+
'react/jsx-uses-vars': 'error',
26+
'react/jsx-uses-react': 'error',
27+
'no-use-before-define': 'off',
28+
'@typescript-eslint/no-use-before-define': 'off', // TODO consider enabling this (currently it reports styles defined at the bottom of the file)
29+
'@typescript-eslint/ban-ts-comment': [
30+
'error',
31+
{
32+
'ts-ignore': 'allow-with-description',
33+
'ts-expect-error': 'allow-with-description',
34+
},
35+
],
36+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
37+
'@typescript-eslint/no-var-requires': 'warn',
2238
},
2339
};

.github/ISSUE_TEMPLATE/---feature-request.md

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

.github/ISSUE_TEMPLATE/-question.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: "\U0001F41E Bug report (Reanimated v2)"
3+
about: Report an issue with Reanimated v2
4+
title: ''
5+
labels: "\U0001F41E Bug, 🏠 Reanimated2"
6+
assignees: ''
7+
---
8+
9+
<!--
10+
NOTE: please submit only bug reports here, any new questions or feature requests should be submitted in Discussions:
11+
https://github.com/software-mansion/react-native-reanimated/discussions
12+
-->
13+
14+
## Description
15+
16+
<!--
17+
Tell us what's happening here.
18+
-->
19+
20+
### Expected behavior
21+
22+
### Actual behavior & steps to reproduce
23+
24+
## Snack or minimal code example
25+
26+
<!--
27+
Please provide a minimal code example that reproduces the issue in [Snack](https://snack.expo.io/) or link to the Github repository.
28+
Here are some tips for providing a minimal example: [https://stackoverflow.com/help/mcve](https://stackoverflow.com/help/mcve).
29+
-->
30+
31+
## Package versions
32+
33+
<!--
34+
Fill in your Reanimated and React Native versions below.
35+
36+
List other libraries if relevant.
37+
-->
38+
39+
- React Native:
40+
- React Native Reanimated:
41+
- NodeJS:
42+
- Xcode:
43+
- Java & Gradle:
44+
45+
## Affected platforms
46+
47+
- [ ] Android
48+
- [ ] iOS
49+
- [ ] Web
Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,29 @@
22
name: "\U0001F41E Bug report"
33
about: Report an issue with Reanimated
44
title: ''
5-
labels: "\U0001F41E Bug, \U0001F914 To verify"
5+
labels: "\U0001F41E Bug"
66
assignees: ''
7-
87
---
98

9+
<!--
10+
NOTE: please submit only bug reports here, any new questions or feature requests should be submitted in Discussions:
11+
https://github.com/software-mansion/react-native-reanimated/discussions
12+
-->
13+
1014
## Description
1115

1216
<!--
1317
Tell us what's happening here.
1418
-->
1519

16-
### Screenshots
17-
18-
## Steps To Reproduce
19-
20-
1.
21-
2220
### Expected behavior
2321

24-
### Actual behavior
22+
### Actual behavior & steps to reproduce
2523

2624
## Snack or minimal code example
2725

2826
<!--
29-
Please provide a Snack ([https://snack.expo.io/](https://snack.expo.io/)) or provide a minimal code example that reproduces the problem.
27+
Please provide a minimal code example that reproduces the issue in [Snack](https://snack.expo.io/) or link to the Github repository.
3028
Here are some tips for providing a minimal example: [https://stackoverflow.com/help/mcve](https://stackoverflow.com/help/mcve).
3129
-->
3230

@@ -38,6 +36,14 @@ Fill in your Reanimated and React Native versions below.
3836
List other libraries if relevant.
3937
-->
4038

41-
- React:
4239
- React Native:
4340
- React Native Reanimated:
41+
- NodeJS:
42+
- Xcode:
43+
- Java & Gradle:
44+
45+
## Affected platforms
46+
47+
- [ ] Android
48+
- [ ] iOS
49+
- [ ] Web

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Question
4+
url: https://github.com/software-mansion/react-native-reanimated/discussions/categories/q-a
5+
about: Please ask and answer questions here.
6+
- name: Feature request
7+
url: https://github.com/software-mansion/react-native-reanimated/discussions/categories/ideas
8+
about: Please submit feature requests here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,19 @@ You can add before / after section if you're changing some behavior.
3434
### After
3535
3636
-->
37+
38+
## Test code and steps to reproduce
39+
40+
<!--
41+
Please include code that can be used to test this change and short description how this example should work.
42+
This snippet should be as minimal as possible and ready to be pasted into editor (don't exclude exports or remove "not important" parts of reproduction example)
43+
-->
44+
45+
## Checklist
46+
47+
- [ ] Included code example that can be used to test this change
48+
- [ ] Updated TS types
49+
- [ ] Added TS types tests
50+
- [ ] Added unit / integration tests
51+
- [ ] Updated documentation
52+
- [ ] Ensured that CI passes
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build npm package
2+
3+
on:
4+
schedule:
5+
- cron: '0 12 */1 * *'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out
12+
uses: actions/checkout@v1
13+
14+
- name: Set up JDK 1.8
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 1.8
18+
19+
- name: Install NDK
20+
uses: nttld/setup-ndk@v1
21+
id: setup-ndk
22+
with:
23+
ndk-version: r21d
24+
25+
- name: Build package
26+
env:
27+
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
28+
run: >-
29+
./createNPMPackage.sh
30+
31+
- name: Upload npm package
32+
uses: actions/upload-artifact@v2
33+
with:
34+
name: react-native-reanimated-2.0.0-alpha.tgz
35+
path: '*.tgz'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Validate issues
2+
on:
3+
issues:
4+
types: [edited, labeled, unlabeled]
5+
6+
jobs:
7+
check_issue:
8+
runs-on: ubuntu-latest
9+
name: Validate issue
10+
steps:
11+
- name: Validate issue
12+
id: validate-issue
13+
uses: karol-bisztyga/issue-validator@v1
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
required-sections: 🐞 Bug,Description,Expected behavior,Actual behavior & steps to reproduce,Package versions;💡 Feature request,Description,Motivation;❓Question,Description

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ project.xcworkspace
2929
.gradle
3030
local.properties
3131
android/src/main/JNILibs/
32+
android/.cxx
3233

3334
# node.js
3435
#

0 commit comments

Comments
 (0)