android/src/main/java/chat/flyer/rnandroiduripath/RNAndroidURIPathModule.kt
Showing 0 of 1 total issue
Method getPath
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
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