-
Notifications
You must be signed in to change notification settings - Fork 78
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
Android: NativeModules.FileTransfer does not exist #16
Comments
Any luck? |
@aroth @bouchertommy Is this module still maintained? |
@GeoffreyPlitt I haven't had the chance to look -- especially not first thing on a Monday. Yes, this module is maintained, but in my spare time and I've been quite busy these days. I hoped to take a look at this issue within a week or so. Can you please provide sample code? It'll simplify & speed up matters on my end. |
Thanks! RN 0.32, on Android, any call to RNUploader.upload() will fail with "Cannot call upload of undefined". So it's broken for all Android users, as of RN 0.32, perhaps earlier versions too. The problem is that NativeModules.FileTransfer is NULL now, and your module seems to depend on it being there. |
That's the problem -- this module doesn't yet officially support Android. Two options:
I wasn't completely satisfied with the PR and so it wasn't merged. Maybe someday I'll find the time to work on Android support, but as of now, I'm primarily developing for iOS and my schedule leaves very little room. Better yet, perhaps somebody from the community will step up to tackle this. I'm very open to PRs. |
Ah, thanks! |
Related to #13
I'm on RN 0.32 and your module gives me "Cannot call upload of undefined" because NativeModules.FileTransfer does not exist.
Your module seems to depend on NativeModules.FileTransfer, but this does not exist for me (I console.log it out and it's NULL)
The text was updated successfully, but these errors were encountered: