react-native-doc-preview
v0.2.0
Published
A document previewer for react native.
Downloads
12
Maintainers
Readme
react-native-doc-preview
A document previewer for react native.
Installation
$ npm i --save react-native-doc-preview
$ react-native link react-native-doc-preview
Usage
import DocPreview from 'react-native-doc-preview';
export default class App extends Component<{}> {
render() {
return (
<View style={styles.container}>
<DocPreview
style={styles.preview}
filePath={resolveAssetSource(require('./assets/Instruments.pdf')).uri}
/>
</View>
);
}
}