Skip to content
This repository was archived by the owner on May 7, 2022. It is now read-only.

Commit dea51c0

Browse files
committed
Change Android module name
1 parent df18baf commit dea51c0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

android/src/main/java/chat/flyer/rnandroiduripath/RNAndroidURIPathModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.io.IOException
1212

1313
class RNAndroidURIPathModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
1414

15-
override fun getName() = "RNAndroidURIPath"
15+
override fun getName() = "RNAndroidURIPathModule"
1616

1717
@ReactMethod(isBlockingSynchronousMethod = true)
1818
fun getPath(uriString: String): String {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flyerhq/react-native-android-uri-path",
3-
"version": "1.0.3",
3+
"version": "2.0.1",
44
"description": "Get an absolute path to a file retrieved by Android's Intent.ACTION_GET_CONTENT that returns a content URI.",
55
"homepage": "https://github.com/flyerhq/react-native-android-uri-path#readme",
66
"main": "lib/index.js",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { NativeModules, Platform } from 'react-native'
22

33
const getPath: (uriString: string) => string =
4-
Platform.OS === 'android'
5-
? NativeModules.RNAndroidURIPath.getPath
4+
Platform.OS === 'android' && NativeModules.RNAndroidURIPathModule
5+
? NativeModules.RNAndroidURIPathModule.getPath
66
: (uriString: string) => uriString
77

88
export default getPath

0 commit comments

Comments
 (0)