Skip to content

Can threeagent be used with react-native? #45

Answered by DougHamil
hkjels asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't used react-native before, but I started digging into it yesterday. You're right, it looks like we just need to allow a ThreeJS Renderer instance to be passed into threeagent's render fn.

Currently, threeagent creates the renderer and sets up the canvas, but this is just for convenience, not necessity. I have a working example and I'll get the changes merged into the latest version after I do a bit more testing.

The only issues that came up were from bugs in the latest version of three + expo-three, but threeagent works fine once you get a expo-three Renderer instance created.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hkjels
Comment options

Answer selected by hkjels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants