I want to use bodySegmentation model in react-native(0.72.4) project. I installed expo-gl(13.2.0),expo-gl-cpp(11.4.0),tensorflow/tfjs(4.11.0), react(18.2.0) but when i’m trying to install tensorflow/tfjs-react-native(0.8.0) library it’s giving following error: Could not resolve dependency: npm ERR! peer expo-gl@“^7.0.0” from @tensorflow/tfjs-react-native@0.8.0 npm ERR! node_modules/@tensorflow/tfjs-react-native npm ERR! @tensorflow/tfjs-react-native@“*” from the root project
Hi @Earth_Bulla ,
I apologize for the delay in my response.
@tensorflow/tfjs-react-native@
library relies on expo-gl and expo-gl-cpp. Therefore, you must use a version of expo-gl
that is compatible with react-native
.
Here are the currently supported Expo dependencies:
"@types/react-native": "0.60.2",
"@types/react-native-fs": "^2.13.0",
"clang-format": "~1.8.0",
"expo-asset": "^7.0.0",
"expo-camera": "^7.0.0",
"expo-gl": "^7.0.0",
"gts": "^3.1.0",
"react": "^16.12.0",
Kindly try the given dependencies and let me know if they resolve your issue. Thank you!