azesmway / react-native-unity-play

Play an unity view in react native
MIT License
40 stars 16 forks source link

[iOS] Is IPC implemented? #9

Closed stockhuman closed 2 years ago

stockhuman commented 2 years ago

Hello!

Thanks for the library - It seems cleaner and more up to date than most other implementations of this particular RN<==>Unity challenge. Am I mistaken or is iOS communication not implemented? Using postMessage as in the docs results in "TypeError: null is not an object (evaluating 'UnityNativeModule.postMessage')".

Cheers :)

azesmway commented 2 years ago

Hello!

Thanks for the library - It seems cleaner and more up to date than most other implementations of this particular RN<==>Unity challenge. Am I mistaken or is iOS communication not implemented? Using postMessage as in the docs results in "TypeError: null is not an object (evaluating 'UnityNativeModule.postMessage')".

Cheers :)

Hi! I did this for a project that didn't require such a link, so yes, it isn't there. But I don’t think it’s difficult to implement it, there’s everything for that.

stockhuman commented 2 years ago

Thanks, @azesmway :)

chanceeakin commented 2 years ago

Hey y'all; I've opened up a PR for this behavior. Would one of you mind giving my PR a look? Mobile dev noob over here. 😄