Skip to content

Three.JS on React Native without Expo dependencies #1783

Answered by CodyJasonBennett
jayypluss asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I have a PR for v8 here with an example/local build to play with: #1699. The API is the same as web, including events, and I have a breakdown of how that works in the comment. ATM, the only distinction from web is that render accepts a GL context instead of a canvas.

We do use expo-gl as the default GL implementation but it has no dependency on Expo (you can use all expo helper libs without expo-cli, etc.). The only peer dependency you'll need is react-native when using <Canvas />, but you can use R3F and its hooks OOTB in any case.

I do think some bare examples would be helpful to get people up and running, and also to not mislead people. Maybe we should work on that once we ship an…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jayypluss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants