Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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,
title: '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.3 (2023-10-30)
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.