createTHREEViewClass is not a function

#1

“dependencies”: {
“expo”: “^22.0.0”,
“pixi.js”: “^4.6.0”,
“react”: “16.0.0-beta.5”,
“react-native”: “^0.49.5”,
“three”: “^0.88.0”
}

when I use:
const THREEView = Expo.createTHREEViewClass(THREE);
I got an error:
_expo2.default.createTHREEViewClass is not a function

How can I solve it?

#2

Hey – sorry about this, createTHREEViewClass is an old function that has been removed now. I will update the docs in these few days. The expo-three library: https://github.com/expo/expo-three provides this functionality now!

1 Like