Since react-native-keyevent not updated anymore, please take a look at this one: react-native-external-keyboard-listener. It provide the same feature but you not need to setup your MainApplication
and AppDelegate
anymore. It also supports detect if external keyboard is connected or not.