ryuryu1010
@ryuryu1010

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

react-native-receive-sharing-intentがandroidで変なエラーが出る

ReactNativeでshare機能を作成しています。
iosは問題なくできるのですがandroidだとできません。
下記がエラーになります。
解決策がわからなく困っています。
誰かわかる方いませんでしょうか?

Error: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getAction()' on a null object reference
    at Object.promiseMethodWrapper [as getFileNames] (NativeModules.js:103)
    at ReceiveSharingIntentModule.getFileNames (ReceiveSharingIntent.ts:47)
    at ReceiveSharingIntent.ts:28
    at AppState.js:90
    at RCTDeviceEventEmitter.emit (EventEmitter.js:189)
    at MessageQueue.__callFunction (MessageQueue.js:416)
    at MessageQueue.js:109
    at MessageQueue.__guard (MessageQueue.js:364)
    at MessageQueue.callFunctionReturnFlushedQueue (MessageQueue.js:108)
    at RNDebuggerWorker.js:2
"react-native-receive-sharing-intent": "^2.0.0",
0

No Answers yet.

Your answer might help someone💌