You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the social share module you must first `require()` it. After you `require()` the module you have access to its APIs.
10
10
11
-
```JavaScript
11
+
```JavaScript
12
12
// ------------ JavaScript ------------------
13
13
var SocialShare =require("@nativescript/social-share");
14
14
@@ -22,7 +22,7 @@ import * as SocialShare from "@nativescript/social-share";
22
22
23
23
The `shareImage()` method expects an [`ImageSource`](http://docs.nativescript.org/ApiReference/image-source/ImageSource.html) object. The code below loads an image from the app and invokes the share widget with it:
24
24
25
-
```JavaScript
25
+
```JavaScript
26
26
// ------------ JavaScript ------------------
27
27
var SocialShare =require("@nativescript/social-share");
28
28
var imageSourceModule =require("@nativescript/core");
Looking for some extra help getting social sharing working in your mobile application? Check out these resources:
78
145
79
-
*[Social Media Sharing in a Vanilla NativeScript Application](https://www.thepolyglotdeveloper.com/2016/03/implement-social-media-sharing-nativescript-app/)
80
-
*[Social Media Sharing in a NativeScript with Angular Application](https://www.thepolyglotdeveloper.com/2017/02/social-media-sharing-prompts-nativescript-angular-application/)
146
+
-[Social Media Sharing in a Vanilla NativeScript Application](https://www.thepolyglotdeveloper.com/2016/03/implement-social-media-sharing-nativescript-app/)
147
+
-[Social Media Sharing in a NativeScript with Angular Application](https://www.thepolyglotdeveloper.com/2017/02/social-media-sharing-prompts-nativescript-angular-application/)
0 commit comments