Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(iOS): support react native new architecture. #4661

Merged
merged 51 commits into from
Jan 6, 2025

Conversation

asafkorem
Copy link
Contributor

@asafkorem asafkorem commented Dec 16, 2024

Support RN new-arch on iOS

  • Add support from Detox test-app for React Native new architecture.
  • Update scripts and CI pipeline to test RN 76 + new architecture.
  • Add new-arch support from Detox

@asafkorem asafkorem self-assigned this Dec 16, 2024
@asafkorem asafkorem force-pushed the test/support-react-native-new-arch branch 2 times, most recently from 2431a36 to d8a5d9c Compare December 22, 2024 14:28
@asafkorem asafkorem force-pushed the test/support-react-native-new-arch branch 2 times, most recently from e09f58a to 40dde14 Compare January 1, 2025 11:31
@asafkorem asafkorem force-pushed the test/support-react-native-new-arch branch 2 times, most recently from 683edaf to cc454a6 Compare January 2, 2025 09:04
@asafkorem asafkorem force-pushed the test/support-react-native-new-arch branch from cc454a6 to cb35ca8 Compare January 2, 2025 10:15
@asafkorem asafkorem force-pushed the test/support-react-native-new-arch branch from cb35ca8 to abb9ae4 Compare January 2, 2025 13:12
@asafkorem asafkorem marked this pull request as ready for review January 2, 2025 14:27
detox/test/e2e/17.datePicker.test.js Outdated Show resolved Hide resolved
scripts/change_all_react_native_versions.sh Outdated Show resolved Hide resolved
.buildkite/pipeline_common.sh Outdated Show resolved Hide resolved
.buildkite/pipeline_common.sh Outdated Show resolved Hide resolved
@d4vidi
Copy link
Collaborator

d4vidi commented Jan 6, 2025

+Add issue to backlog about restoring DatePicker testing w/ new-arch

@asafkorem asafkorem force-pushed the test/support-react-native-new-arch branch from 2677c01 to 0b9b92f Compare January 6, 2025 15:45
@asafkorem asafkorem merged commit ac67da0 into master Jan 6, 2025
3 checks passed
@asafkorem asafkorem deleted the test/support-react-native-new-arch branch January 6, 2025 17:58
@asafkorem
Copy link
Contributor Author

+Add issue to backlog about restoring DatePicker testing w/ new-arch

Done, #4679

@asafkorem
Copy link
Contributor Author

Released with v20.32.0
cc @Sky, I used your draft work as a reference for some of the fixes here, thanks! 👑🙏🏼

// MARK: - Setup Methods

private func setupReactNative(with launchOptions: [UIApplication.LaunchOptionsKey: Any]?) {
let bridge = RCTBridge(delegate: self, launchOptions: launchOptions)
Copy link

@Sky Sky Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this fine to manually create Bridge where is New Arch uses Bridgeless mode by default?

Copy link
Contributor Author

@asafkorem asafkorem Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'm using the old pattern here.. I might have overlooked it and need to migrate to the RCTAppDelegate class, which should manage both bridgeless mode and the new architecture mode.
I tried to use a custom AppDelegate.swift and to implement the needed logic (since RCTAppDelegate can't be used in Swift) but it doesn't seem to be the right approach here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants