Open UlanNurmatov opened 3 years ago
To make your application appear only when sharing jpg, jpeg and png, you have to add the following in android/app/src/main/AndroidManifest.xml
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/jpeg" />
<data android:mimeType="image/jpg" />
<data android:mimeType="image/png" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/jpeg" />
<data android:mimeType="image/jpg" />
<data android:mimeType="image/png" />
</intent-filter>
If you already had something set in your intent-filter such as <data android:mimeType="*/*" />
, you should remove it
I have just sent a pr to update the README.md with this new indication #317
I want to share only jpg, jpeg and png images into the app, only on Android. What should I put in Manifest file?