How to integrate C++ OpenGL app in React Native?

Once I tried to do similar, only in the native environment (primarily we are talking about Android). That's what happened.

The idea is that the main part of the application that is responsible for displaying OpenGL context and all the logic was fairly productive so I chose C++ after you managed to insert it all in .so library (though for her bondage without hundreds of lines on the side of Java and C++ has not done).
As a result, the main part of the 3D application is developed separately from platform-specific.

After a while I decided to go back to work on it, but the idea of developing a native part of Android looks a lot less interesting (although then planned and under iOS).

Previously considered various frameworks for creating hybrid apps, such as Cordova or React Native. The first are definitely out because of its sluggishness. The second is not even found any reasons on why not to use it, tried simple examples - all OK.
But first and foremost the task of the next insert into a native application component, which must work with Surface'ohms. If in the tested case of Java, you still need to start rendering and to share the events, everything is even worse: for example, here's the canvas implementation . 1000 rows, Carl! still not clear how it works.

Someone solved a similar problem with React Native, whether there are simpler examples of binding native parts with RN? Or are there other more friendly in this respect the tools?
June 14th 19 at 18:20
1 answer
June 14th 19 at 18:22
Solution
React Native in this respect surprised)) Managed to insert native GLSurfaceView without any problems.
Github@React-native-OpenGL-native-example

There is an example in the thread minimal with a simple Renderer'th, and in master already .so a library that is collected once proven way

Summary: React Native without any problems interacts with the native part and allows you to manipulate not only simple data but also to incorporate native elements

Find more questions by tags AndroidJava Native InterfaceOpenGL