npm install @react-native-oh-tpl/react-native-file-viewer@file:# yarn yarn add @react-native-oh-tpl/react-native-file-viewer@file:# 下面的代码展示了这个库的基本使用场景: [!WARNING] 使用时 import 的库名不变。 import { StyleSheet, ScrollView, Text, TouchableOpacity } from "react-native"...
$ npm install react-native-file-viewer --save or $ yarn add react-native-file-viewer Mostly automatic installation (recommended) # RN >= 0.60 cd ios && pod install # RN < 0.60 react-native link react-native-file-viewer Extra step (Android only) ...
$ npm install react-native-doc-viewer --saveAutomatic installation$ react-native link react-native-doc-viewerCocoaPods installationIf your project uses CocoaPods to manage React installation (especially with Expo-detached project), most likely you will run into issue with header files not found as...
请到三方库的 Releases 发布地址查看配套的版本信息:@react-native-oh-tpl/react-native-file-viewer Releases,并下载适用版本的 tgz 包。 进入到工程目录并输入以下命令: [!TIP] # 处替换为 tgz 包的路径 npm npm install @react-native-oh-tpl/react-native-file-viewer@file:# yarn yarn add @react-na...
Preview any type of file supported by the mobile device. iOS: it uses QuickLook Framework Android: it uses ACTION_VIEW Intent to start the default app associated with the specified file. Windows: Start the default app associated with the specified file. Getting started $ npm install react-...
npm install react-native-doc-viewer --save Add the plugin dependency to your Podfile, pointing at the path where NPM installed it: pod 'RNReactNativeDocViewer', path: '../node_modules/react-native-doc-viewer'Run pod install Manual installation...
npm install react-native-doc-viewer --save Add the plugin dependency to your Podfile, pointing at the path where NPM installed it: pod 'RNReactNativeDocViewer', path: '../node_modules/react-native-doc-viewer'Run pod install Manual installation...
Add the plugin dependency to your Podfile, pointing at the path where NPM installed it: pod 'RNReactNativeDocViewer', path: '../node_modules/react-native-doc-viewer' pod 'RNReactNativeDocViewer', path: '../node_modules/react-native-doc-viewer'Run...
Preview any type of file supported by the mobile device. iOS: it uses QuickLook Framework Android: it uses ACTION_VIEW Intent to start the default app associated with the specified file. Windows: Start the default app associated with the specified file. Getting started $ npm install react-...