Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS onShortcutItemPressed can not work #7

Open
zhangyin2019 opened this issue Oct 21, 2020 · 2 comments
Open

IOS onShortcutItemPressed can not work #7

zhangyin2019 opened this issue Oct 21, 2020 · 2 comments

Comments

@zhangyin2019
Copy link

IOS onShortcutItemPressed can not work

@kevinsmithwebdev-zz
Copy link

kevinsmithwebdev-zz commented Oct 22, 2020

I'm having the same problem, my saga bails on

yield call(shortcutsEmitter.addListener, 'onShortcutItemPressed', handleShortcut);

When I catch the error, I get:

TypeError: Cannot read property '_nativeModule' of null
at addListener (NativeEventEmitter.js:46)
at runCallEffect (proc.js:524)
at runEffect (proc.js:446)
at next (proc.js:326)
at currCb (proc.js:399)
at run (es6.promise.js:75)
at es6.promise.js:92
at flush (_microtask.js:18)
at tryCallOne (core.js:37)
at core.js:123

This is on a iPhone 11 14.0 emulator.

@kevinsmithwebdev-zz
Copy link

But now it seems to be working. Go figure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants