Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@nativescript-community/ui-share-file
Advanced tools
Send/Share files to other apps.
Android Intent, IOS InteractionController:
.
Install the plugin in your app.
npm install @nativescript-community/ui-share-file
Info: Shared files should be in the documents
path.
import { ShareFile } from '@nativescript-community/ui-share-file';
import * as fs from '@nativescript/core/file-system';
export class TestClass{
shareFile;
fileName;
documents;
path;
file;
constructor() {
this.fileName = 'text.txt';
this.documents = fs.knownFolders.documents();
this.path = fs.path.join(this.documents.path, this.fileName);
this.file = fs.File.fromPath(this.path);
this.shareFile = new ShareFile();
this.shareFile.open( {
path: this.path,
intentTitle: 'Open text file with:', // optional Android
rect: { // optional iPad
x: 110,
y: 110,
width: 0,
height: 0
},
options: true, // optional iOS
animated: true // optional iOS
});
}
}
Path to the file which will be shared.
String
: Required
Title for the intent on Android.
String
: (Optional)
Default: Open file:
.
Positioning the view for iPads. On iPhones it's always shown on the bottom.
Object
: (Optional)
Default: {x: 0, y: 0, width: 0, height: 0 }
.
Show additional opening options for iOS devices.
Boolean
: (Optional)
Default: false
.
Opening animation for iOS devices.
Boolean
: (Optional)
Default: false
.
1.3.1 (2023-02-27)
Note: Version bump only for package @nativescript-community/ui-share-file
FAQs
Send/share file to other apps.
The npm package @nativescript-community/ui-share-file receives a total of 46 weekly downloads. As such, @nativescript-community/ui-share-file popularity was classified as not popular.
We found that @nativescript-community/ui-share-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.