CodyJasonBennett / r3f-native-starter

PR here: https://github.com/pmndrs/react-three-fiber/pull/1699
https://gn4s0.csb.app/
46 stars 9 forks source link

expo-gl could not be found within the project (react-native-cli app) #10

Open darimuhittinhey opened 1 year ago

darimuhittinhey commented 1 year ago

The example imports :

import {Canvas, useFrame} from '@react-three/fiber/native';

but when i import these from @react-three/fiber/native it gives error :

error: Error: Unable to resolve module expo-gl from <project_dir_here>/node_modules/@react-three/fiber/native/dist/react-three-fiber-native.cjs.dev.js: expo-gl could not be found within the project or in these directories:
  node_modules/@react-three/fiber/node_modules
  node_modules

im not using an expo app. i have to implement in react-native-cli app

Thanks in advance.