mouselangelo / react-native-actions-shortcuts

iOS Home screen Quick Actions & Android App Shortcuts for react-native
MIT License
131 stars 22 forks source link

IOS onShortcutItemPressed can not work #7

Open zhangyin2019 opened 3 years ago

zhangyin2019 commented 3 years ago

IOS onShortcutItemPressed can not work

kevinsmithwebdev-zz commented 3 years ago

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 commented 3 years ago

But now it seems to be working. Go figure.