1.0.3 • Published 8 years ago

react-native-quicklook v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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

npm.io

  • iOS

npm.io

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.