Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 538 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 538 Bytes

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>
    );
  }
}