react-native-uploader
react-native-uploader copied to clipboard
support Android
This is great! Thanks for the PR -- a lot of people will benefit from your work. I will review and merge shortly.
:D Could you please merge the request?
I've had a chance to quickly review the PR. I'd like to see a few changes:
- Naming
- I use RNUploader, you're using RNFileTransfer. Please use RNUploader for consistency.
- Feature Parity
- I would like both iOS and Android versions to behave the same, including:
- Support for POST and PUT
- Support for custom headers
- Support for custom params
- Support for base64 data
- Progress support
- Cancellation support
- I would like both iOS and Android versions to behave the same, including:
- A working example for Android under
examples/
. - Documentation
- I'd like cleaner documentation detailing the Android implementation, but I don't mind taking care of this once I'm content with the PR.
Do you think you could take implement any of these requests such that both iOS and Android implementations support the same features?
Thank you again for your work.
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)
Hi @GeoffreyPlitt -- I'll take a look with a current version of RN next week. Can you post a separate issue please?
Will do
+1
+1
+1 and I'd be happy to do the necessary updates. Would you merge a suitable version?
Can we follow same name spacing between android and ios implementation?
I would also add a JS interface to hide the awkward DeviceEmitter stuff that needs to go into code. So the API would be exactly the same in iOS and Android.
Anyone still working on this?
I got error on sync gradle Error:Configuration with name 'default' not found.
@aroth will this lib ever support android? it looks like this PR has been abandoned