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

Android: NativeModules.FileTransfer does not exist #16

Closed
GeoffreyPlitt opened this issue Sep 14, 2016 · 6 comments
Closed

Android: NativeModules.FileTransfer does not exist #16

GeoffreyPlitt opened this issue Sep 14, 2016 · 6 comments

Comments

@GeoffreyPlitt
Copy link

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)

@GeoffreyPlitt
Copy link
Author

Any luck?

@GeoffreyPlitt
Copy link
Author

@aroth @bouchertommy Is this module still maintained?

@aroth
Copy link
Owner

aroth commented Sep 20, 2016

@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.

@GeoffreyPlitt
Copy link
Author

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.

@aroth
Copy link
Owner

aroth commented Sep 20, 2016

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.

@aroth aroth closed this as completed Sep 20, 2016
@GeoffreyPlitt
Copy link
Author

Ah, thanks!

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