You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: migrate from deprecated RCTEventEmitter (#215)
## 📜 Description
Re-worked deprecated API for `RCTEventEmitter ` on Android. Minimal
supported RN version is 0.65.
Updated compatibility page in docs.
## 💡 Motivation and Context
Deprecated API sooner or earlier will be removed, so there is no sense
to keep the usage of deprecated API.
In this PR I've decided to drop a support of really old RN versions and
remove usage of deprecated APIs. For that I reworked event dispatching
API 🙂
## 📢 Changelog
### Docs
- added info about minimal supported version of RN for paper
architecture;
### Android
- added `surfaceId` to the event;
- removed `dispatch` method;
- override `getEventData` method.
## 🤔 How Has This Been Tested?
Tested on Pixel 7 Pro (both fabric & paper). Works as before.
## 📝 Checklist
- [x] CI successfully passed
Copy file name to clipboardExpand all lines: docs/docs/guides/compatibility.md
+16-3
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,18 @@ keywords: [react-native-keyboard-controller, compatibility, react-native version
6
6
7
7
# Compatibility
8
8
9
+
:::info
10
+
11
+
If you found an incompatibility or conflict with other open source libraries - don't hesitate to open an [issue](https://github.com/kirillzyusko/react-native-keyboard-controller/issues/new?assignees=kirillzyusko&labels=bug&template=bug_report.md&title=). It will help the project 🙏
12
+
13
+
:::
14
+
9
15
## React Native
10
16
17
+
Below you can find an information about compatibility with `react-native` package per different architectures.
18
+
19
+
### Fabric (new) architecture
20
+
11
21
Starting from `1.2.0` this library adds support for a new architecture called `Fabric`. Since a new architecture is still in adoption stage and it changes some APIs over time - it's highly recommended to use versions which are compatible and were intensively tested against specific `react-native` versions.
12
22
13
23
Below you can find a table with supported versions:
@@ -17,11 +27,14 @@ Below you can find a table with supported versions:
17
27
|1.3.0+ | 0.70.0+ |
18
28
|1.2.0+ | 0.69.0+ |
19
29
20
-
:::info
30
+
### Paper (old) architecture
21
31
22
-
For `Paper` (old) architecture there is no any restrictions. If you found an incompatibility - don't hesitate to open an [issue](https://github.com/kirillzyusko/react-native-keyboard-controller/issues/new?assignees=kirillzyusko&labels=bug&template=bug_report.md&title=). It will help the project 🙏
32
+
This library supports as minimal `react-native` version as possible. However it was decided to drop a support for some really old versions for better development workflow and future support.
0 commit comments