2017-01-12 21 views
0

我如何從Android圖庫共享圖像以反應原生應用程序?如何從android圖庫發送圖像到react-native應用程序?

我已經添加了一個意向過濾器,以我的AndroidManifest.xml:

<intent-filter> 
    <action android:name="android.intent.action.SEND" /> 
    <category android:name="android.intent.category.DEFAULT" /> 
    <data android:mimeType="image/*" /> 
</intent-filter> 

我怎麼聽發送意圖是什麼?

編輯:我想從本地圖像庫發送圖像到我的反應原生應用程序,如從圖庫共享圖像到Instagram應用程序。

+0

你看了關於[CameraRoll(https://facebook.github.io/react-native/docs/cameraroll.html) – Eldelshell

+0

謝謝,但我不認爲CameraRoll可以幫助我。它應該更像[鏈接](https://facebook.github.io/react-native/docs/linking.html),但沒有網址 – Remownz

回答

相關問題