简体   繁体   中英

How to integrate React Native KeyEvent with Expo?

I am looking for a way to get input data from device's hardware barcode scanner. I found a library that reportedly can get the job done, which is React Native KeyEvent .

However, the instructions mostly lead me to edit the gradle files inside android folder. Since I am using Expo, I do not have the android folder to follow the document.

Without Ejecting to ExpoKit , is there any other way to integrate them?

You would need to write an expo plugin for it. Fortunately, somebody seems to already have done just that. See:

expo plugin for react-native-keyevent

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM