Skip to content

Office Preview Plugin for React Native(support png,pdf,doc,xls,txt...)

License

Notifications You must be signed in to change notification settings

sishuguojixuefu/react-native-office-viewer

Repository files navigation

@sishuguojixuefu/react-native-officeapps-wrapper

Install

$ npm install @sishuguojixuefu/react-native-office-viewer

or

$ yarn add @sishuguojixuefu/react-native-office-viewer

Link

$ react-native link react-native-webview

Use

...
import { OfficeViewer } from '@sishuguojixuefu/react-native-office-viewer'
...
<OfficeViewer containerStyle={{ marginTop: 10 }} source="http://storage.xuetangx.com/public_assets/xuetangx/PDF/1.xls" />
...

Thanks