This week I worked on a boilerplate to have a three.js app running both on RN and Web.
Edit: I screwed up the sandbox (no versioning on CSB at the moment :( ) in a way I can't return to a working state easily. I will update this link as soon as I get my next working version. But it will take some times! :(
https://codesandbox.io/s/wizar-dungeon-r3f-onulw
I use React Three Fiber and it was mostly a matter of dealing with resources loading to have both code running on Web and RN.
Once you get the minimal comon way to load asset on both platefom the code is straight forward, and you get exact same result on both plateform.
assets credits: https://0x72.itch.io/
Top comments (1)
This will definitely be placed in my learning ressource, thx Zoe.