react-native-quicklook BuildPlatformnpm

This package helps us to view txt, pdf and office files in our application. In the iOS platform like mac system Quick Look function, but android, can only use another application to open.

Content

Installation

In the project folder, enter the following commands

// install
npm install react-native-quicklook
// link
react-native link react-native-quicklook

Example

  • android

  • iOS

Usage

import QuickLookView from 'react-native-quicklook';

...
render() {
    return <QuickLookView fileUrl={"a.doc"} style={{flex:1}}/>
}
...

Author

Ruwei Li, liruwei0109@outlook.com

License

react-native-quicklook is available under the ISC license. See the LICENSE file for more info.