react-native-actions-shortcuts icon indicating copy to clipboard operation
react-native-actions-shortcuts copied to clipboard

IOS onShortcutItemPressed can not work

Open zhangyin2019 opened this issue 4 years ago • 2 comments

IOS onShortcutItemPressed can not work

zhangyin2019 avatar Oct 21 '20 09:10 zhangyin2019

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 avatar Oct 22 '20 16:10 kevinsmithwebdev-zz

But now it seems to be working. Go figure.

kevinsmithwebdev-zz avatar Oct 22 '20 18:10 kevinsmithwebdev-zz