New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-social-share

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-social-share - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

48

package.json
{
"name": "nativescript-social-share",
"version": "1.0.0",
"description": "A NativeScript module to use the native social sharing widget",
"main": "social-share.js",
"repository": {
"type": "git",
"url": "https://github.com/tjvantoll/nativescript-social-share.git"
},
"keywords": [
"NativeScript"
],
"author": "TJ VanToll <tj.vantoll@gmail.com> (http://tjvantoll.com/)",
"license": {
"type": "MIT",
"url": "https://github.com/tjvantoll/nativescript-social-share/blob/master/LICENSE"
},
"bugs": {
"url": "https://github.com/tjvantoll/nativescript-social-share/issues"
},
"homepage": "https://github.com/tjvantoll/nativescript-social-share"
}
"name": "nativescript-social-share",
"version": "1.1.0",
"description": "A NativeScript module to use the native social sharing widget",
"main": "social-share.js",
"nativescript": {
"platforms": {
"ios": "1.1.0",
"android": "1.1.0"
},
"tns-ios": {
"version": "1.1.2"
}
},
"repository": {
"type": "git",
"url": "https://github.com/tjvantoll/nativescript-social-share.git"
},
"keywords": [
"NativeScript"
],
"author": "TJ VanToll <tj.vantoll@gmail.com> (http://tjvantoll.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/tjvantoll/nativescript-social-share/issues"
},
"homepage": "https://github.com/tjvantoll/nativescript-social-share"
}

@@ -1,33 +0,16 @@

# NativeScript Social Share
# NativeScript Social Share Plugin
A NativeScript module to use the native social sharing widget on Android and iOS. Currently this module supports image and text sharing.
A NativeScript plugin to use the native social sharing widget on Android and iOS. Currently this module supports image and text sharing.
![](screenshots/ios.png)
![](screenshots/android.png)
## Installation
Run `npm install nativescript-social-share --save` from your project's inner `app` directory:
```
.
├── app <----------------run npm install from here
│ ├── App_Resources
│ │ ├── android
│ │ └── ios
│ ├── app.css
│ ├── app.js
│ ├── main-page.js
│ ├── main-page.xml
│ ├── node_modules
│ │ └── nativescript-social-share <-- The install will place the module's code here
│ │ └── ...
│ ├── package.json <-- The install will register “nativescript-social-share” as a dependency here
│ └── tns_modules
│ └── ...
└── platforms
├── android
└── ios
$ tns plugin add nativescript-social-share
```
As is, using npm within NativeScript is still experimental, so it's possible that you'll run into some issues. A more complete solution is in the works, and you can check out [this issue](https://github.com/NativeScript/nativescript-cli/issues/362) for an update on its progress and to offer feedback.
This command automatically installs the necessary files, as well as stores nativescript-social-share as a dependency in your project's `package.json` file.
If npm doesn't end up working for you, you can just copy and paste this repo's social-share.android.js and social-share.ios.js files into your app and reference them directly.

@@ -39,3 +22,3 @@ ## Usage

``` js
var socialShare = require("./node_modules/nativescript-social-share/social-share");
var socialShare = require("nativescript-social-share");
```

@@ -50,3 +33,3 @@

``` js
var socialShare = require("./node_modules/nativescript-social-share/social-share");
var socialShare = require("nativescript-social-share");
var imageSource = require("image-source");

@@ -69,3 +52,3 @@

``` js
var socialShare = require("./node_modules/nativescript-social-share/social-share");
var socialShare = require("nativescript-social-share");
socialShare.shareText("I love NativeScript!");

@@ -77,10 +60,3 @@ ```

``` js
socialShare.shareText(image, "How would you like to share this text?");
```
## Screenshots
<div>
<img alt="" src="screenshots/ios.png" style="max-width: 50%; height: 500px; float: left;">
<img alt="" src="screenshots/android.png" style="max-width: 50%; height: 500px; float: left;">
</div>
socialShare.shareText("I love NativeScript!", "How would you like to share this text?");
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc