Hi @kevinejohn,
I'm the maintainer of (react-native-hotkeys)[https://github.com/kingstinct/react-native-hotkeys]. Just pinging you to see bring the discussion up on how to best handle keyboard input for react-native in general, and see if we maybe can collaborate to bring as good a solution as possible to the community.
Comparison:
- In terms of platform support both libraries supports iOS,
react-native-keyevent supports Android and react-native-hotkeys support web in addition. Background here is that I'm more familiar with the Apple ecosystem (and web) than Android - and use my iPad Magic Keyboard every day.
react-native-keyevent seems to listen for all key events, react-native-hotkeys take is more specific in it's listening, both which might have both pros and cons in terms of DX and performance.
react-native-hotkeys supports multiple listeners that are executed in the order they're rendered, overridable with priority and with possibility to set a defaultHandler (for example to navigate back on any unhandled Escapes).
react-native-hotkeys supports modifier keys as well as non-alphanumerical keys (arrows f ex). By quickly looking at react-native-keyevent I guess it does so for Android but not iOS - is that correct?
Hi @kevinejohn,
I'm the maintainer of (react-native-hotkeys)[https://github.com/kingstinct/react-native-hotkeys]. Just pinging you to see bring the discussion up on how to best handle keyboard input for react-native in general, and see if we maybe can collaborate to bring as good a solution as possible to the community.
Comparison:
react-native-keyeventsupports Android andreact-native-hotkeyssupport web in addition. Background here is that I'm more familiar with the Apple ecosystem (and web) than Android - and use my iPad Magic Keyboard every day.react-native-keyeventseems to listen for all key events,react-native-hotkeystake is more specific in it's listening, both which might have both pros and cons in terms of DX and performance.react-native-hotkeyssupports multiple listeners that are executed in the order they're rendered, overridable with priority and with possibility to set a defaultHandler (for example to navigate back on any unhandled Escapes).react-native-hotkeyssupports modifier keys as well as non-alphanumerical keys (arrows f ex). By quickly looking atreact-native-keyeventI guess it does so for Android but not iOS - is that correct?