This repository was archived by the owner on May 7, 2022. It is now read-only.
File tree 3 files changed +4
-4
lines changed
android/src/main/java/chat/flyer/rnandroiduripath
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import java.io.IOException
12
12
13
13
class RNAndroidURIPathModule (reactContext : ReactApplicationContext ) : ReactContextBaseJavaModule(reactContext) {
14
14
15
- override fun getName () = " RNAndroidURIPath "
15
+ override fun getName () = " RNAndroidURIPathModule "
16
16
17
17
@ReactMethod(isBlockingSynchronousMethod = true )
18
18
fun getPath (uriString : String ): String {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @flyerhq/react-native-android-uri-path" ,
3
- "version" : " 1 .0.3 " ,
3
+ "version" : " 2 .0.1 " ,
4
4
"description" : " Get an absolute path to a file retrieved by Android's Intent.ACTION_GET_CONTENT that returns a content URI." ,
5
5
"homepage" : " https://github.com/flyerhq/react-native-android-uri-path#readme" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change 1
1
import { NativeModules , Platform } from 'react-native'
2
2
3
3
const getPath : ( uriString : string ) => string =
4
- Platform . OS === 'android'
5
- ? NativeModules . RNAndroidURIPath . getPath
4
+ Platform . OS === 'android' && NativeModules . RNAndroidURIPathModule
5
+ ? NativeModules . RNAndroidURIPathModule . getPath
6
6
: ( uriString : string ) => uriString
7
7
8
8
export default getPath
You can’t perform that action at this time.
0 commit comments