-
Notifications
You must be signed in to change notification settings - Fork 253
Open
Description
I want to be able to share URLs, plain text, and contact cards. I got URLs & plain text working, but every time I go to share a contact card, the extension quits and never continues to the app.
Info.plist for my Share Extension (correctly matches urls, text, and vcards because I see my extension show up when sharing a contact card):
<key>NSExtensionActivationRule</key>
<string>
SUBQUERY (
extensionItems, $extensionItem,
SUBQUERY (
$extensionItem.attachments, $attachment,
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.vcard" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.plain-text" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url"
).@count >= 1
).@count > 0
</string>
My index.share.js:
const Share = () => {
useEffect(() => {
ShareMenuReactView.data().then(() => {
ShareMenuReactView.continueInApp();
});
}, []);
return <View />;
};
AppRegistry.registerComponent('ShareMenuModuleComponent', () => Share);
Can anyone offer some help? @Gustash
dilarasager
Metadata
Metadata
Assignees
Labels
No labels