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

How about iOS? #1

Open
spikeisryu opened this issue Jul 16, 2017 · 3 comments
Open

How about iOS? #1

spikeisryu opened this issue Jul 16, 2017 · 3 comments

Comments

@spikeisryu
Copy link

Hi Albert,

I'm trying to use gRPC on React Native, iOS environment and encountered your article and it helps a lot to understand how to do that even on iOS, but still couldn't find the right way.

Did you have a chance to try it on iOS, too?
I got stuck on this issue for several days. Especially, exporting a native module at Objective-C with RCT_REMAP_METHOD macro and async/await part.
Here are the stackoverflow links about my questions and if you can help me, that will be highly appreciated.

https://stackoverflow.com/questions/45099173/react-nativerct-remap-method-how-to-export-a-method-with-a-parameter-and-ret
https://stackoverflow.com/questions/45126086/javascript-never-returns-from-await

Sincerely,
Spike

@spikeisryu
Copy link
Author

Luckily, I was able to find the answer. Used RCT_EXPORT_METHOD and there was something wrong with Objective-C code part.

The problem is resolved and closing the issue.

@spikeisryu
Copy link
Author

Sorry, even though I was able to export methods from Objective-C, the return values from them are all NULL only and still couldn't figure out the reason.

Here is the stackoverflow link about it.
https://stackoverflow.com/questions/45148675/exportingbridging-method-from-objective-c-to-react-native-with-promise-retur

Do you have any clue to resolve this issue?

@JimmyMow
Copy link

Any update on this @spikeisryu?

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