6

The iPad works with external bluetooth keyboards, and the iPad Pro has a Smart Keyboard, which you can support natively using the UIKeyCommand API.

How can I use these keyboard shortcuts in React Native?

screenshot of keyboard shortcuts, from NSHipster's site

bryanjclark
  • 6,247
  • 2
  • 35
  • 68
  • Did you find an answer 1 1/2 years later? – Craig1123 Nov 13 '20 at 03:50
  • 1
    Kinda-sorta! We're about to ship it in the Khan Academy app in our next release; I intend to do a write-up about it. (In case I don't get around to writing it up: our native iOS code exposes & accepts the shortcuts with iOS, and then passes those commands to our RN code where the actions are handled.) – bryanjclark Nov 16 '20 at 23:48
  • Awesome! I had thought the API would have to be handled in the native code first and then passed back. This could be a good open source package. Looking forward to the write-up :) – Craig1123 Nov 17 '20 at 04:45

0 Answers0