pmndrs / react-three-fiber

🇨🇭 A React renderer for Three.js
https://docs.pmnd.rs/react-three-fiber
MIT License
27.38k stars 1.57k forks source link

📱 Call for React Native maintainers! #1027

Closed gsimone closed 1 year ago

gsimone commented 3 years ago

While we move towards version 6 (!!) of react-three-fiber, the native part is still looking for a solid team of maintainers.

We are looking for any kind of help on the react-native department:

If you are interested, message me or @drcmda on Twitter or Discord, or just pop in the react-three-fiber channel and let us know

https://discord.gg/ZZjjNvJ

Some of the issues we're currently facing are:

jesse-savary commented 3 years ago

Hey! We're a React Native shop that uses react-three-fiber and would love to help out with maintenance.

Any input on where we can start?

joshuaellis commented 3 years ago

Hi @jesse-savary, currently we've released v6 but we have no react-native target in the project. I guess that would be a good start, we think with the right knowledge it should be straight forward as the whole core of the renderer is modular....

mayank-budhiraja commented 3 years ago

Hey @gsimone, I want to help maintaining this repo. This would be my first open source contribution. Thanks

gsimone commented 3 years ago

@mayank-budhiraja If you want to help you can start by looking at react-native issues and see if you can reproduce/help fix them

polymorpher commented 3 years ago

Is there a change log showing major changes from 5 to 6? I saw https://github.com/pmndrs/react-three-fiber/releases but am not sure whether it is complete. I had been using v4 and v5 for the last few months. I noticed v6 is missing native.js - it has a significant trunk of code so I want to be cautious before migrating / upgrading.

drcmda commented 3 years ago

You would need to copy web/index.js as is, channel webglrenderer into exporenderer, and then make events work by mimicking pointer events. Most code has been abstracted so it's just throwing these modules together. You could start without events, if you see it renders we could talk on discord about the events.

swittk commented 3 years ago

Hi there, after a day of trying to understand what react-reconciler seems to do, and how the original v5 implementation worked, I've managed to get react-three-fiber to render on React Native.

IMG_426D33010AB1-1

I shimmed the HTMLCanvasElement with an object (similar to how it was done in Expo-Three's Renderer). And the rest are from figuring out how the v5 implementation worked.

This is my fork here. https://github.com/swittk/react-three-fiber/tree/reactnative/packages/fiber

I've also added a simple "demo" folder in the project directory for testing/debugging with Expo react-native. To run it you'll need to install the peer & dev dependencies, then run npm run expo

To be honest I still don't know the ins and outs of how this all works much, but I guess I'll at least put this here as a start 😅.

Current issues

Hope this helps!

Daavidaviid commented 3 years ago

what's up with that initiative ? Are there some people working on it right now ? Is it doable ? Would be so nice if it could work perfectly at least with expo 🥰

CodyJasonBennett commented 3 years ago

I'm experimenting with #1384 to add events in #1699, but I've been running into issues with its demo/example.

I just need to get that and then tests up so we can start mapping events. We can streamline the API later.

CodyJasonBennett commented 3 years ago

It's all working in #1699. Just time to clean up the API and figure out how we can best mirror web.