![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@finanzritter/nativescript-share-file
Advanced tools
Send and share files to other apps in NativeScript using native OS APIs.
:construction: Work in progress
This package was forked from the unmaintained package braune-digital/nativescript-share-file. We are currently cleaning up and updating the code.
Send/Share files to other apps.
Android Intent, IOS InteractionController:
.
Install the plugin in your app.
npm install @finanzritter/nativescript-share-file
On Android, you must add a FileProvider definition and specify available files, which is documented here or have a look at the demo app (AndroidManifest.xml and file_paths.xml).
Info: Shared files should be in the documents
path.
import { ShareFile } from '@finanzritter/nativescript-share-file';
import { Observable, knownFolders, path, File } from "@nativescript/core";
export class TestClass extends Observable {
shareFile;
fileName;
documents;
path;
file;
constructor() {
super();
this.fileName = 'test.txt';
this.documents = knownFolders.documents();
this.path = path.join(this.documents.path, this.fileName);
this.file = 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
.
FAQs
Send and share files to other apps in NativeScript using native OS APIs.
The npm package @finanzritter/nativescript-share-file receives a total of 57 weekly downloads. As such, @finanzritter/nativescript-share-file popularity was classified as not popular.
We found that @finanzritter/nativescript-share-file demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.