Looking how to import images
This commit is contained in:
parent
39876031e4
commit
c9d231251f
|
@ -51,6 +51,12 @@
|
|||
<data android:mimeType="text/xml" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<data android:mimeType="image/*" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="com.darryncampbell.cordova.plugin.intent.ACTION"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
|
|
|
@ -118,6 +118,7 @@ const Map: Component = () => {
|
|||
}
|
||||
} else if (intent.action === 'android.intent.action.SEND') {
|
||||
const uri = intent.extras['android.intent.extra.STREAM'];
|
||||
// intent.type is 'image/*' for gallery share
|
||||
importUrls([uri]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue