flyerhq/react-native-android-uri-path

View on GitHub
src/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { NativeModules, Platform } from 'react-native'
 
const getPath: (uriString: string) => string =
Platform.OS === 'android' && NativeModules.RNAndroidURIPathModule
? NativeModules.RNAndroidURIPathModule.getPath
: (uriString: string) => uriString
 
export default getPath