Closed kirillzyusko closed 3 months ago
Fixed compilation errors on RN 0.71 and keyboard-controller 1.12.
keyboard-controller
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):
emitDeviceEvent
The original change was introduced in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/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.
ReactApplicationContext
Tested on Pixel 7 Pro (Android 14), Fabric + RN 0.74
📜 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):The original change was introduced in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/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
Android
emitDeviceEvent
as it's available only in RN 0.72;ReactApplicationContext
class instance;🤔 How Has This Been Tested?
Tested on Pixel 7 Pro (Android 14), Fabric + RN 0.74
📝 Checklist