react-native-quicklook
v1.0.3
Published
preview the file
Downloads
8
Readme
react-native-quicklook
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, [email protected]
License
react-native-quicklook is available under the ISC license. See the LICENSE file for more info.