-
-
Notifications
You must be signed in to change notification settings - Fork 62
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: bridgeless support #410
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kirillzyusko
added
enhancement
New feature or request
deps update
Upgrade dependencies of the project
labels
Apr 6, 2024
kirillzyusko
force-pushed
the
chore/react-native-0.74
branch
from
April 6, 2024 23:13
d9141cc
to
0ae9b68
Compare
📊 Package size report
|
kirillzyusko
force-pushed
the
chore/react-native-0.74
branch
from
April 30, 2024 11:10
0ae9b68
to
d5eee8b
Compare
2 tasks
kirillzyusko
added a commit
that referenced
this pull request
Jun 15, 2024
… 0.72 (#475) ## 📜 Description Fixed compilation errors on RN 0.71 and `keyboard-controller` 1.12. ## 💡 Motivation and Context `emitDeviceEvent` is available only in RN 0.72 and we don't want to support RN 0.72 as the minimal version (because it's still quite new): ![image](https://github.com/kirillzyusko/react-native-keyboard-controller/assets/22820318/61c229df-aabc-483a-8d36-db7c03a17e82) The original change was introduced in #410 - it was needed because old implementation threw errors (crashes) in bridgeless mode on Fabric. In this Pr I made it compatible with bridgeless + it doesn't use newly introduced methods, so it should have a support until RN 0.65 again. ## 📢 Changelog <!-- High level overview of important changes --> <!-- For example: fixed status bar manipulation; added new types declarations; --> <!-- If your changes don't affect one of platform/language below - then remove this platform/language --> ### Android - don't use `emitDeviceEvent` as it's available only in RN 0.72; - revert to previous code variant, but send an event from `ReactApplicationContext` class instance; ## 🤔 How Has This Been Tested? Tested on Pixel 7 Pro (Android 14), Fabric + RN 0.74 ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📜 Description
Updated
react-native
to0.74
(wich has bridgeless mode enabled by default in new arch).💡 Motivation and Context
We need to support bridgeless mode.
Main changes to make fabric working were:
_jsThread
on iOS (since it's bridgeless mode -> these variable will be alwaysfalse
);Also in this PR I had to remove flipper integration to speed up delivery of this PR. Later on I'll probably add this integration back.
Closes #429 #394
📢 Changelog
JS
iOS
_jsThread
check as in Fabric it'll be alwaysfalse
;Android
🤔 How Has This Been Tested?
tested locally + on CI using both architectures.
📸 Screenshots (if appropriate):
Everything works as before 🙃
📝 Checklist