Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using rn 0.72.4 #852

Open
amsteromer opened this issue Aug 19, 2023 · 3 comments
Open

Error when using rn 0.72.4 #852

amsteromer opened this issue Aug 19, 2023 · 3 comments

Comments

@amsteromer
Copy link

Getting an error when building:

"node_modules\rn-fetch-blob\android\src\main\java\com\RNFetchBlob\RNFetchBlobReq.java:741: Error: Value must be ? 0 but getColumnIndex can be -1 [Range]
int statusCode = c.getInt(c.getColumnIndex(DownloadManager.COLUMN_STATUS));"

my versions:
"rn-fetch-blob": "^0.12.0"
"react": "18.2.0",
"react-native": "0.72.4",

@niyon-x
Copy link

niyon-x commented Apr 3, 2024

@amsteromer where you able to fix it?

@amsteromer
Copy link
Author

@amsteromer where you able to fix it?

no :(

@niyon-x
Copy link

niyon-x commented Apr 4, 2024

@amsteromer where you able to fix it?

no :(

bruv I fixed it by replacing both getColumnIndex with getColumnIndexOrThrow at rn-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

then go to root directory, run npx patch-package rn-fetch-blob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants