12345678910111213141516171819202122232425262728293031 |
-
-
-
-
- import {
- NativeModules,
- DeviceEventEmitter,
- Platform,
- NativeAppEventEmitter,
- } from 'react-native'
-
- const RNFetchBlob:RNFetchBlobNative = NativeModules.RNFetchBlob
-
-
- function actionViewIntent(path:string, mime:string = 'text/plain') {
- if(Platform.OS === 'android')
- return RNFetchBlob.actionViewIntent(path, mime)
- else
- return Promise.reject('RNFetchBlob.actionViewIntent only supports Android.')
- }
-
-
- export default {
- actionViewIntent
- }
|