JoshMarler / react-juce

Write cross-platform native apps with React.js and JUCE
https://docs.react-juce.dev
MIT License
763 stars 79 forks source link

How to use Hermes #314

Closed gabriel-earle closed 8 months ago

gabriel-earle commented 8 months ago

Thanks a ton for a wonderful package. What are the steps I can use to choose Hermes as the JS engine?

Gabe

shih1 commented 8 months ago

I had to add configs to the Preprocessor Definitions and Header Search Paths recently to get hermes to work

Preprocessor

REACTJUCE_USE_HERMES=1

Headers

**/react-juce/react_juce/hermes/API/
**/react-juce/react_juce/hermes/public/
**/react-juce/react_juce/hermes/API/jsi/

Header locations will change depending on system.

gabriel-earle commented 8 months ago

Thank you!! I was able to actually figure it out with the help of ChatGPT 4. It was able to scan this Repo using the browser, use its deep knowledge of C++, a tiny bit of knowledge of Hermes, and everything else to help me get to a solution. I am also compiling through Projucer so that added a ton of work. CMake is probably a better choice if using Hermes, but if anyone stumbles upon this who is using Projucer, you'll need to do the following: