I’ve been working on bridging three.js into Expo, it works really well and it’s a nice alternative to SceneKit.
Essentially it uses React Native with an Expo.GLView
then you pass the gl context into a THREE.WebGLRenderer
.
Naturally it has a much wider breadth than running three.js in a web view on a device.
The biggest downside right now is that you can’t load files from local paths.
Assets must be referenced statically or from a remote url.
My hack to get around this is to pass in a callback function that sends the file name back, you can then provide the respective asset.
Here are some examples that I ported into this:
Let me know what you think