Can Golang mobile be used with React-Native?

I am thinking of writing a mobile application using, as Go mobile lib https://godoc.org/golang.org/x/mobile (I know this is experimental, so wait more and see the situation) for the data layer and polyfill for presentation android and use React-native http://facebook.imtqy.com/react-native/ to view iOS and we hope that the android will be displayed once when it is supported (if it will / will be supported).

How many conflicts would I make if it were? I assume that I can transfer data between two libraries from each corresponding native (as in obj-c and java, I know that all this compiles on the native application).

To clarify

Go mobile lib and response-native will be compiled into the mobile client. Go lib makes server requests and is not a server.

UPDATE

So, React Native came out for Android, so now I'm just wondering how to switch to mobile devices and respond to them and communicate with each other in the same application.

+5
source share
1 answer

Yes you can do it. You can include the generated code in your own response project and write some “glue code” (objective-c and java class) that requires your go library and uses the React Native's Native Module extension to access the provided functions.

+3
source

All Articles