Skip to content

Commit

Permalink
fix(classes-not-exported): fix classes not exported warning
Browse files Browse the repository at this point in the history
* Not exported warning fix.

Classes InstagramShare was not exported warning.

* Not exported warning fix

Classes GooglePlusShare was not exported warning.

* Not exported warning fix

Classes WhatsAppShare was not exported warning.

* Not exported warning fix

Classes GenericShare was not exported warning.

* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
eminsr authored and jgcmarins committed Sep 20, 2018
1 parent e8da5f2 commit 540aa8f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -35,8 +35,12 @@ Share Social , Sending Simple Data to Other Apps
<string>mailto</string>
</array>
```

6. Run your project (`Cmd+R`)
7. (Optional) Also following lines allows users to save photos, add them in `info.plist`
```xml
<key>NSPhotoLibraryAddUsageDescription</key>
<string>$(PRODUCT_NAME) wants to save photos</string>
```
8. Run your project (`Cmd+R`)

#### Android Install

Expand Down
1 change: 1 addition & 0 deletions ios/GenericShare.m
Expand Up @@ -9,6 +9,7 @@
#import "GenericShare.h"

@implementation GenericShare
RCT_EXPORT_MODULE();
- (void)shareSingle:(NSDictionary *)options
failureCallback:(RCTResponseErrorBlock)failureCallback
successCallback:(RCTResponseSenderBlock)successCallback
Expand Down
1 change: 1 addition & 0 deletions ios/GooglePlusShare.m
Expand Up @@ -9,6 +9,7 @@
#import "GooglePlusShare.h"

@implementation GooglePlusShare
RCT_EXPORT_MODULE();
- (void)shareSingle:(NSDictionary *)options
failureCallback:(RCTResponseErrorBlock)failureCallback
successCallback:(RCTResponseSenderBlock)successCallback {
Expand Down
1 change: 1 addition & 0 deletions ios/InstagramShare.m
Expand Up @@ -9,6 +9,7 @@
#import <AVFoundation/AVFoundation.h>

@implementation InstagramShare
RCT_EXPORT_MODULE();
- (void)shareSingle:(NSDictionary *)options
failureCallback:(RCTResponseErrorBlock)failureCallback
successCallback:(RCTResponseSenderBlock)successCallback {
Expand Down
2 changes: 1 addition & 1 deletion ios/WhatsAppShare.m
Expand Up @@ -10,7 +10,7 @@

@implementation WhatsAppShare
static UIDocumentInteractionController *documentInteractionController;

RCT_EXPORT_MODULE();
- (void)shareSingle:(NSDictionary *)options
failureCallback:(RCTResponseErrorBlock)failureCallback
successCallback:(RCTResponseSenderBlock)successCallback {
Expand Down

0 comments on commit 540aa8f

Please sign in to comment.