flyerhq/react-native-android-uri-path

View on GitHub
android/src/main/java/chat/flyer/rnandroiduripath/RNAndroidURIPathModule.kt

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 1 total issue

Method getPath has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

@ReactMethod(isBlockingSynchronousMethod = true)
fun getPath(uriString: String): String {
val uri = Uri.parse(uriString)
val cursor = reactApplicationContext.contentResolver.query(uri, null, null, null, null)
cursor ?: return uriString

    There are no issues that match your filters.

    Category
    Status