Skip to content

Commit 355f16a

Browse files
authored
feat!: support new React Native architecture (#439)
FEATURES: - New React Native Architecture Support - Adds support for the new React Native architecture. - Uses codegen to generate the native interop layer for TurboModules and Fabric views. - Navigation SDK Upgrades - Android: upgraded from 7.1.0 to 7.3.0 - iOS: upgraded from 10.6.0 to 10.7.0 BREAKING CHANGES: - Legacy Architecture Removed - Removes support for the legacy React Native architecture. - API changes: - View Event Handlers as Props: Instead of using mapViewCallbacks and navigationViewCallbacks wrapper objects, event handlers are now passed directly as first-class view props. - View Flags as Props: View flags have been moved from viewControllers to view props. For example, the headerEnabled state can now be managed directly via a view prop, instead of calling navigationViewController.setHeaderEnabled(value). - Migrate from configuring listeners via one combined setter call to setting each listener via its own dedicated setter. - Updated the minimum Kotlin version to 2.2.10. Our recommended Android Gradle Plugin (AGP) is now 8.10.0 and Gradle is now 8.11.1. - Support for React Native versions below 0.79.x are dropped.
1 parent 4376205 commit 355f16a

File tree

146 files changed

+15781
-7851
lines changed

Some content is hidden

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

146 files changed

+15781
-7851
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Check Objective-C formatting
5353
run: ./scripts/format-objc.sh --check
5454

55-
check-java-formatting:
55+
check-java-and-kotlin-formatting:
5656
runs-on: ubuntu-latest
5757
timeout-minutes: 30
5858
steps:
@@ -84,6 +84,17 @@ jobs:
8484
- name: Check Java formatting
8585
run: ./scripts/format-java.sh --check
8686

87+
- name: Download ktfmt
88+
run: |
89+
KTFMT_VERSION=0.54
90+
KTFMT_URL=https://github.com/facebook/ktfmt/releases/download/v${KTFMT_VERSION}/ktfmt-${KTFMT_VERSION}-jar-with-dependencies.jar
91+
mkdir -p $HOME/ktfmt
92+
curl -L -o $HOME/ktfmt/ktfmt.jar $KTFMT_URL
93+
94+
- name: Check Kotlin formatting
95+
run: |
96+
find . -name "*.kt" -not -path "*/build/*" | xargs java -jar $HOME/ktfmt/ktfmt.jar --google-style --dry-run --set-exit-if-changed
97+
8798
test:
8899
runs-on: ubuntu-latest
89100
timeout-minutes: 30

0 commit comments

Comments
 (0)