pmndrs / react-three-fiber

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

Expo 52 renders nothing in preview build iOS. Works fine in dev build. #3397

Open joekendal opened 6 days ago

joekendal commented 6 days ago

Anyone else encountered this issue when upgrading? Things are working just fine in development builds. No errors, everything rendered as expected. Only when opening a new Preview build causes a blank canvas, no loading of any models. No crashes.

dooart commented 3 days ago

@joekendal same here - did you find any workaround yet besides creating a dev build?

joekendal commented 3 days ago

@dooart Our workaround was to ditch this library and use react-native-filament instead.

May not be what you're looking for but our use case was simple enough that we didn't need a lot of the three.js functionalities

jb-san commented 3 days ago

I got it "working" by doing the following:

 <Canvas events={null} style={{ flex: 1, backgroundColor: 'red' }}>
        <Suspense>
          <OrbitControls />
          <Scene />
        </Suspense>
      </Canvas>

this makes it render on both iPhone and android, but it stops any click handlers on the meshes, without the events={null} it works on web and android, but not ios

jb-san commented 23 hours ago

I have a repro repo for expo 52 using the new architecture https://github.com/pmndrs/react-three-fiber/issues/3399