diff --git a/README.md b/README.md index faff0200..f3c1a8fb 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,12 @@ Share Social , Sending Simple Data to Other Apps mailto ``` - -6. Run your project (`Cmd+R`) +7. (Optional) Also following lines allows users to save photos, add them in `info.plist` + ```xml + NSPhotoLibraryAddUsageDescription + $(PRODUCT_NAME) wants to save photos + ``` +8. Run your project (`Cmd+R`) #### Android Install diff --git a/ios/GenericShare.m b/ios/GenericShare.m index 12c7dc9f..a6e67ecd 100644 --- a/ios/GenericShare.m +++ b/ios/GenericShare.m @@ -9,6 +9,7 @@ #import "GenericShare.h" @implementation GenericShare + RCT_EXPORT_MODULE(); - (void)shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback diff --git a/ios/GooglePlusShare.m b/ios/GooglePlusShare.m index 28fa0cec..295742d8 100644 --- a/ios/GooglePlusShare.m +++ b/ios/GooglePlusShare.m @@ -9,6 +9,7 @@ #import "GooglePlusShare.h" @implementation GooglePlusShare + RCT_EXPORT_MODULE(); - (void)shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback { diff --git a/ios/InstagramShare.m b/ios/InstagramShare.m index 69aef6cc..90427aa2 100644 --- a/ios/InstagramShare.m +++ b/ios/InstagramShare.m @@ -9,6 +9,7 @@ #import @implementation InstagramShare + RCT_EXPORT_MODULE(); - (void)shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback { diff --git a/ios/WhatsAppShare.m b/ios/WhatsAppShare.m index f8c3732c..79a6e423 100644 --- a/ios/WhatsAppShare.m +++ b/ios/WhatsAppShare.m @@ -10,7 +10,7 @@ @implementation WhatsAppShare static UIDocumentInteractionController *documentInteractionController; - +RCT_EXPORT_MODULE(); - (void)shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback {