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.
In the project folder, enter the following commands
// install
npm install react-native-quicklook
// link
react-native link react-native-quicklook- android
- iOS
import QuickLookView from 'react-native-quicklook';
...
render() {
return <QuickLookView fileUrl={"a.doc"} style={{flex:1}}/>
}
...Ruwei Li, [email protected]
react-native-quicklook is available under the ISC license. See the LICENSE file for more info.

