Skip to content

Commit 25cd7c5

Browse files
author
supervons
committed
bug fix
1 parent 8e7d28f commit 25cd7c5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/component/securityKeyboardInput.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ function SecurityKeyboardInput(props) {
3232

3333
//接受数据
3434
function inputEvent() {
35-
DeviceEventEmitter.addListener("securityKeyboardInput", data => {
36-
setValueArr(data)
37-
})
35+
DeviceEventEmitter.addListener(
36+
props.keyName || "keyboardListener",
37+
data => {
38+
setValueArr(data)
39+
}
40+
)
3841
}
3942

4043
function animation() {

0 commit comments

Comments
 (0)