
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react-native-file-launcher
Advanced tools
## Getting started Pacote desevolvido para abrir arquivos da pasta Downloads, desde que se saiba o nome do mesmo. O Dispositivo mostrara ao usuario os aplicativos que podem abrir aquele arquivo.
Pacote desevolvido para abrir arquivos da pasta Downloads, desde que se saiba o nome do mesmo. O Dispositivo mostrara ao usuario os aplicativos que podem abrir aquele arquivo.
$ npm i -s react-native-intent-launcher
$ react-native link react-native-intent-launcher
android/app/src/main/java/[...]/MainApplication.java
import com.thebylito.RNFileLauncherPackage;
to the imports at the top of the filenew RNFileLauncherPackage()
to the list returned by the getPackages()
methodAppend the following lines to android/settings.gradle
:
include ':react-native-intent-launcher'
project(':react-native-intent-launcher').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-intent-launcher/android')
Insert the following lines inside the dependencies block in android/app/build.gradle
:
compile project(':react-native-intent-launcher')
Adicionar em AndroidManifest.xml
<application
...
>
+ <provider
+ android:name="android.support.v4.content.FileProvider"
+ android:authorities="${applicationId}.provider"
+ android:exported="false"
+ android:grantUriPermissions="true">
+ <meta-data
+ android:name="android.support.FILE_PROVIDER_PATHS"
+ android:resource="@xml/provider_paths" />
+ </provider>
</application>
import RNFileLauncher from 'react-native-intent-launcher';
try {
await RNFileLauncher.startActivity({ fileName }); // Que esta dentro da pasta downloads;
} catch (e) {
/* Se não existir um programa para abrir a Promisse é rejeitada */
console.log(e);
}
FAQs
## Getting started Pacote desevolvido para abrir arquivos da pasta Downloads, desde que se saiba o nome do mesmo. O Dispositivo mostrara ao usuario os aplicativos que podem abrir aquele arquivo.
The npm package react-native-file-launcher receives a total of 9 weekly downloads. As such, react-native-file-launcher popularity was classified as not popular.
We found that react-native-file-launcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.