diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d862287a62..d0de83f4f7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,7 +4,6 @@ about: Create a report to help us improve title: '' labels: bug assignees: kirillzyusko - --- **Describe the bug** @@ -18,6 +17,7 @@ I would be highly appreciate if you can provide repository for reproducing your **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -30,13 +30,14 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Smartphone (please complete the following information):** - - Desktop OS: [e.g. Windows 10, MacOS 10.15.5] - - Device: [e.g. iPhone8] - - OS: [e.g. iOS 10.0] - - RN version: [e.g. 0.68.2] - - RN architecture: [e.g. old/new or paper/fabric] - - JS engine: [e.g. JSC, Hermes, v8] - - Library version: [e.g. 1.2.0] + +- Desktop OS: [e.g. Windows 10, MacOS 10.15.5] +- Device: [e.g. iPhone8] +- OS: [e.g. iOS 10.0] +- RN version: [e.g. 0.68.2] +- RN architecture: [e.g. old/new or paper/fabric] +- JS engine: [e.g. JSC, Hermes, v8] +- Library version: [e.g. 1.2.0] **Additional context** -Add any other context about the problem here. \ No newline at end of file +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index fcb7292e1b..e57afdc489 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,7 +4,6 @@ about: Suggest an idea for this project title: '' labels: Feature assignees: kirillzyusko - --- **Is your feature request related to a problem? Please describe.** @@ -17,4 +16,4 @@ A clear and concise description of what you want to happen. A clear and concise description of any alternative solutions or features you've considered. **Additional context** -Add any other context or screenshots about the feature request here. \ No newline at end of file +Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 741246d0df..69dcffd3be 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,7 +1,9 @@ ## 📜 Description + ## 💡 Motivation and Context + @@ -12,26 +14,31 @@ ### JS -- -- + +- +- ### iOS -- -- + +- +- ### Android -- -- + +- +- ## 🤔 How Has This Been Tested? + ## 📸 Screenshots (if appropriate): + ## 📝 Checklist -- [ ] CI successfully passed \ No newline at end of file +- [ ] CI successfully passed diff --git a/.github/stale.yml b/.github/stale.yml index 29c8b6ea7e..dd4566889f 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -7,4 +7,4 @@ markComment: > This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. -closeComment: true \ No newline at end of file +closeComment: true diff --git a/.github/workflows/android-e2e-test.yml b/.github/workflows/android-e2e-test.yml index d14bfb64ca..8648d3e254 100644 --- a/.github/workflows/android-e2e-test.yml +++ b/.github/workflows/android-e2e-test.yml @@ -27,8 +27,8 @@ jobs: env: WORKING_DIRECTORY: example concurrency: - group: android-e2e-${{ github.ref }} - cancel-in-progress: true + group: android-e2e-${{ github.ref }} + cancel-in-progress: true steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -87,4 +87,4 @@ jobs: if: ${{ failure() }} with: name: android-fail-screen-shoots - path: e2e/artifacts \ No newline at end of file + path: e2e/artifacts diff --git a/.github/workflows/build-android-fabric.yml b/.github/workflows/build-android-fabric.yml index 45bf740fcf..6f754046aa 100644 --- a/.github/workflows/build-android-fabric.yml +++ b/.github/workflows/build-android-fabric.yml @@ -57,4 +57,4 @@ jobs: restore-keys: | ${{ runner.os }}-fabric-gradle- - name: Run Gradle Build for FabricExample/android/ - run: cd FabricExample/android && ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a && cd ../.. \ No newline at end of file + run: cd FabricExample/android && ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a && cd ../.. diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 3c5bda6b6c..394916bcfa 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -55,4 +55,4 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Run Gradle Build for example/android/ - run: cd example/android && ./gradlew assembleDebug --build-cache && cd ../.. \ No newline at end of file + run: cd example/android && ./gradlew assembleDebug --build-cache && cd ../.. diff --git a/.github/workflows/build-ios-fabric.yml b/.github/workflows/build-ios-fabric.yml index 88998491df..252f129c6f 100644 --- a/.github/workflows/build-ios-fabric.yml +++ b/.github/workflows/build-ios-fabric.yml @@ -85,4 +85,4 @@ jobs: -configuration Debug \ -destination 'platform=iOS Simulator,name=iPhone 11 Pro' \ build \ - CODE_SIGNING_ALLOWED=NO | xcpretty" \ No newline at end of file + CODE_SIGNING_ALLOWED=NO | xcpretty" diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index 9c22f080f7..7b9f4fdbde 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -81,4 +81,4 @@ jobs: -configuration Debug \ -destination 'platform=iOS Simulator,name=iPhone 11 Pro' \ build \ - CODE_SIGNING_ALLOWED=NO | xcpretty" \ No newline at end of file + CODE_SIGNING_ALLOWED=NO | xcpretty" diff --git a/.github/workflows/compress-images.yml b/.github/workflows/compress-images.yml index d03a76b76e..0718f942dc 100644 --- a/.github/workflows/compress-images.yml +++ b/.github/workflows/compress-images.yml @@ -30,4 +30,4 @@ jobs: jpegQuality: '80' jpegProgressive: false pngQuality: '80' - webpQuality: '80' \ No newline at end of file + webpQuality: '80' diff --git a/.github/workflows/compress-lottie.yml b/.github/workflows/compress-lottie.yml index ab315abf1a..48be1f50f5 100644 --- a/.github/workflows/compress-lottie.yml +++ b/.github/workflows/compress-lottie.yml @@ -17,4 +17,4 @@ jobs: run: find . -name '*.lottie.json' -exec npx lottie-optim -p 1 -o {} {} \; - name: Verify that the lottie hasn't been changed - run: git diff --exit-code HEAD \ No newline at end of file + run: git diff --exit-code HEAD diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index a08004203e..472625fe61 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -42,4 +42,4 @@ jobs: # The GH actions bot is used by default if you didn't specify the two fields. # You can swap them out with your own user credentials. user_name: github-actions[bot] - user_email: 41898282+github-actions[bot]@users.noreply.github.com \ No newline at end of file + user_email: 41898282+github-actions[bot]@users.noreply.github.com diff --git a/.github/workflows/docs-e2e.yml b/.github/workflows/docs-e2e.yml index afcad35fb9..f9f18374be 100644 --- a/.github/workflows/docs-e2e.yml +++ b/.github/workflows/docs-e2e.yml @@ -43,4 +43,4 @@ jobs: run: yarn playwright test - name: Upload screenshots to Argos - run: yarn argos upload ./screenshots \ No newline at end of file + run: yarn argos upload ./screenshots diff --git a/.github/workflows/ios-e2e-test.yml b/.github/workflows/ios-e2e-test.yml index eaf2861f8c..1788c2edde 100644 --- a/.github/workflows/ios-e2e-test.yml +++ b/.github/workflows/ios-e2e-test.yml @@ -29,8 +29,8 @@ jobs: env: WORKING_DIRECTORY: example concurrency: - group: ios-e2e-${{ github.ref }} - cancel-in-progress: true + group: ios-e2e-${{ github.ref }} + cancel-in-progress: true steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -81,7 +81,7 @@ jobs: working-directory: e2e run: yarn build-example:ios - name: Use software keyboard - run: defaults write com.apple.iphonesimulator ConnectHardwareKeyboard -bool NO + run: defaults write com.apple.iphonesimulator ConnectHardwareKeyboard -bool NO - name: Test app working-directory: e2e run: yarn test-example:ios @@ -89,4 +89,4 @@ jobs: if: ${{ failure() }} with: name: ios-fail-screen-shoots - path: e2e/artifacts \ No newline at end of file + path: e2e/artifacts diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f802501e0c..d843238f11 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,4 +17,4 @@ jobs: - run: yarn install --frozen-lockfile - run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/size-diff.yml b/.github/workflows/size-diff.yml index 309ce6ac93..7ac7ff8051 100644 --- a/.github/workflows/size-diff.yml +++ b/.github/workflows/size-diff.yml @@ -48,4 +48,4 @@ jobs: ### 📊 Package size report | Current size | Target Size | Difference | | ------------- | ------------- | ------------------------ | - | ${{ env.NEW_SIZE }} bytes | ${{ env.OLD_SIZE }} bytes | ${{ env.DIFF }} bytes ${{ env.SIGN }} | \ No newline at end of file + | ${{ env.NEW_SIZE }} bytes | ${{ env.OLD_SIZE }} bytes | ${{ env.DIFF }} bytes ${{ env.SIGN }} | diff --git a/.github/workflows/verify-cpp.yml b/.github/workflows/verify-cpp.yml index c834313398..6381a09d6e 100644 --- a/.github/workflows/verify-cpp.yml +++ b/.github/workflows/verify-cpp.yml @@ -33,4 +33,4 @@ jobs: python -m pip install --upgrade pip pip install cpplint - name: Run cpplint - run: cpplint --linelength=230 --filter=-legal/copyright,-readability/todo,-build/namespaces,-whitespace/comments,-build/c++11,-runtime/int,-runtime/references --quiet --recursive android/src/main/ \ No newline at end of file + run: cpplint --linelength=230 --filter=-legal/copyright,-readability/todo,-build/namespaces,-whitespace/comments,-build/c++11,-runtime/int,-runtime/references --quiet --recursive android/src/main/ diff --git a/.github/workflows/verify-docs.yml b/.github/workflows/verify-docs.yml index 7b462f9f4e..87237b4c4d 100644 --- a/.github/workflows/verify-docs.yml +++ b/.github/workflows/verify-docs.yml @@ -66,4 +66,4 @@ jobs: - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: - source-dir: ./docs/build/ \ No newline at end of file + source-dir: ./docs/build/ diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..0e527a80a5 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,10 @@ +*.lottie.json + +lib/ +node_modules/ +Pods/ + +example/android/app/build/ +example/ios/build/ +FabricExample/android/app/build/ +FabricExample/ios/build/ diff --git a/FabricExample/.watchmanconfig b/FabricExample/.watchmanconfig index 9e26dfeeb6..0967ef424b 100644 --- a/FabricExample/.watchmanconfig +++ b/FabricExample/.watchmanconfig @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/FabricExample/__tests__/close-keyboard.spec.tsx b/FabricExample/__tests__/close-keyboard.spec.tsx index 0ad47bb855..990faa83bc 100644 --- a/FabricExample/__tests__/close-keyboard.spec.tsx +++ b/FabricExample/__tests__/close-keyboard.spec.tsx @@ -7,8 +7,8 @@ import { KeyboardController } from 'react-native-keyboard-controller'; function CloseKeyboard() { return (