drei
drei copied to clipboard
View for React-Native
Is there anyway to make this work?
where is the code ?
Source is https://github.com/pmndrs/drei/blob/master/src/web/View.tsx. I realize the naming is a bit awkward on react-native, but you can measure layout dimensions with https://reactnative.dev/docs/view#onlayout.
My understanding of the issue is that View needs to track a React DOM, but I'm unsure how to track a React-Native View
So, using several Views in one Canvas does not work in react native? Something like this: https://codesandbox.io/p/sandbox/view-skissor-1wmlew?file=%2Fsrc%2FApp.js%3A15%2C32
For now: Module '"@react-three/drei/native"' has no exported member 'View'.ts(2305)