We’re still planning on landing this. I can’t give a specific ETA - this is a pretty large PRs and integrating it with our codebase (including ensuring it passes all tests, which are not exposed here) has taken longer than expected.
Once that lands, it will be 1-2 months before it makes its way to a final RN release and we include it in Expo.
I tried this solution today and there is error in firebase multipart requests. Anyone tried? I am really looking to solutions for this one for long time.
Thanks for quick reply. Have you tried this? I’ve tried this already like below but this solution won’t work for me. File is always undefined.
Error message: 2017-12-09T14:16:44.513Z E app: TypeError: Cannot read property ‘originalname’ of undefined
Thanks!!! Finally it is working!!! By the way do you have any idea to fix below problem?
[eslint] 'new Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead. (node/no-deprecated-api)
I’ve successfully uploaded file but can never get the download URL. Above download url example did not worked for me so I’ve been googling to solve the problem. I’ve found a lot out there but couldn’t solve my problem. Have you tried your download url to load in your react-native app?
AH… This can be another solution. Should have known this earlier. I’ve figreued out the other way like below. Google’s doc is so frustrating… So hard to find the working example.
TypeError: handler is not a function
at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:26:41)
at /var/tmp/worker/worker.js:671:7
at /var/tmp/worker/worker.js:655:9
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
did anybody else get this error? I followed the medium article but it didn’t work? Did I setup the cloud function wrong? I didn’t get any errors when I uploaded it?
I solved the issue as I had an index.js file, you have to use module.exports = api.post etc. if you want to separate the logic for multiple google cloud functions
depends on how you have your google cloud functions registered. Is there a separated index file for
exports.api = functions.https.onRequest(api);
or are they in the same file? if they are separated then express needs to identify the api as a function handler and a module.exports = api.post… is needed
Hello i’m also stuck like you guys , i’have seen @wcandillon cloud functions but didnt understand how to do it , can some one share his code for cloud functions and how to implement it in our RN project, thanks alot.
I tried using @wcandillon’s code, but that gave me the error “await is a reserved word”, then after that when I fixed that error it just said unexpected token. What am I doing wrong?