Skip to content

GodVampire/react-native-ios-file-opener

Repository files navigation

react-native-ios-file-opener

npm version

This is a file opener helper(iOS only). It supports:

  1. open ios File App.
  2. use other file open.

install

use yarn

yarn add react-native-ios-file-opener

iOS Environment

podfile add

  pod 'react-native-ios-file-opener', :podspec => '../node_modules/react-native-ios-file-opener/react-native-ios-file-opener.podspec'

info.plist add permission

  <key>UIFileSharingEnabled</key>
  <true
  <key>LSSupportsOpeningDocumentsInPlace</key>
  <true/>
  

How to use

  import Helper from 'react-native-ios-file-opener';
  
  ... 
    // open ios file app
   Helper.openIOSFileApp();
  
  
   // open it with another application
   const filePath = '';
   Helper.openWithFilePath(filePath);
  ...
  

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published