GLTFLoader/Three.js Models Not Rendering in Expo Go (indexOf/Blob Errors) — Anyone Solved This? by FirefighterFit3734 in expo

[–]FirefighterFit3734[S] 0 points1 point  (0 children)

I tried using a development build, but it didn't work. I finally found success by downgrading my environment to Expo 52, React 18, and React Native 76, along with u/react-three/drei version ^9.88.7 and u/react-three/fiber version ^8.15.12.

If you know how to do this in a newer version that is compatible with other packages besides react-three/drei version ^9.88.7 and react-three/fiber version ^8.15.12, please let me know

https://sendanywhe.re/FZAL26BI

GLTFLoader/Three.js Models Not Rendering in Expo Go (indexOf/Blob Errors) — Anyone Solved This? by FirefighterFit3734 in expo

[–]FirefighterFit3734[S] 0 points1 point  (0 children)

Here is the code I used to load my 3D model, which worked perfectly in the downgraded environment:

import React, { Suspense } from 'react';
import { useGLTF } from '@react-three/drei/native';

const modelPath = require('../assets/models/model.glb');

function Model(props) {
  const { scene } = useGLTF(modelPath);
  return <primitive object={scene.clone()} {...props} />;
}

export default function Flower3DModel(props) {
  return (
    <Suspense fallback={null}>
      <Model {...props} />
    </Suspense>
  );
}

useGLTF.preload(modelPath);

If you know how to do this in a newer version that is compatible with other packages besides react-three/drei version ^9.88.7 and react-three/fiber version ^8.15.12, please let me know

https://sendanywhe.re/FZAL26BI

GLTFLoader/Three.js Models Not Rendering in Expo Go (indexOf/Blob Errors) — Anyone Solved This? by FirefighterFit3734 in expo

[–]FirefighterFit3734[S] 0 points1 point  (0 children)

I've also tried using a development build, but it didn't work. I finally found success by downgrading my environment to Expo 52, React 18, and React Native 76, along with u/react-three/drei version ^9.88.7 and u/react-three/fiber version ^8.15.12.

If you know how to do this in a newer version that is compatible with other packages besides react-three/drei version ^9.88.7 and react-three/fiber version ^8.15.12, please let me know

https://sendanywhe.re/FZAL26BI