React native lets you write your own native code, and then call it on your js file. You are going to have to write Java to call the C library, and create a native module based on that java, and use the first link to integrate with your js file .
Read moreDoes React work with C++?
By writing React components we were able to create an interactive page with a form that executes the WebAssembly module compiled from the C++ code we introduced in the first blog of the series. … Using C++ in a web app with WebAssembly: How to turn C++ code into a web app.
Read more