react-native-document-controller

React Native component for handling UIDocumentInteractionController

Usage no npm install needed!

<script type="module">
  import reactNativeDocumentController from 'https://cdn.skypack.dev/react-native-document-controller';
</script>

README

react-native-document-controller

NativeModule to handle iOS UIDocumentInteractionController for Copy To... or Open With... behavior.

Usage

import { NativeModules } from 'react-native'; // or whatever flavor you prefer
var DocumentController = NativeModules.DocumentController;

DocumentController.show({
  file: 'file://<asset-library-uri>'
});