Megha
Megha

Reputation: 25

Compile and Run dynamic C++ code inside react native app

I have a react native application for android, where i want to give user the capability of writing c++ code inside a code editor and then compiling and executing to show the output. I don't want to use a external service or server for compiling code as I don't have any platform where I can deploy production ready server without read-only environment at free of cost. There are some platforms that offer deploying with limited resources for free but I want a permanent solution free of cost. So that's why I want to execute it within the app itself.

Since I am not sure about how to achieve this inside react native app, can someone give me a step by step process on how to achieve this? I came across a solution of using NDK and clang but not sure how should I do it.

Upvotes: 0

Views: 228

Answers (0)

Related Questions