Skip to content

Commit 7270e44

Browse files
authored
Update tfjs-react-native dependencies (#8062)
FEATURE * feat: update deps * feat: update dep * feat: update dep * feat: update
1 parent fe7f4f3 commit 7270e44

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

tfjs-react-native/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Note that if you are using in a managed expo app the install instructions may be
3838
- **Install @tensorflow/tfjs** - `npm install @tensorflow/tfjs`
3939
- **Install @tensorflow/tfjs-react-native** - `npm install @tensorflow/tfjs-react-native`
4040

41+
If you encounter dependency conflict error in npm install, you can either:
42+
- Follow the instructions to use `--force` or `--legacy-peer-deps`
43+
- Or use yarn to install
4144

4245
> After this point, if you are using Xcode to build for ios, you should use a ‘.workspace’ file instead of the ‘.xcodeproj’
4346

tfjs-react-native/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,14 @@
6969
},
7070
"peerDependencies": {
7171
"@react-native-async-storage/async-storage": "^1.13.0",
72-
"@tensorflow/tfjs-backend-cpu": "~3.7.0",
73-
"@tensorflow/tfjs-backend-webgl": "~3.7.0",
74-
"@tensorflow/tfjs-core": "~3.7.0",
75-
"expo-asset": "^7.0.0",
76-
"expo-camera": "^7.0.0",
77-
"expo-gl": "^7.0.0",
78-
"react": "^16.12.0",
79-
"react-native": ">= 0.58.0",
80-
"react-native-fs": "^2.14.1"
72+
"@tensorflow/tfjs-backend-cpu": "^4.13.0",
73+
"@tensorflow/tfjs-backend-webgl": "^4.13.0",
74+
"@tensorflow/tfjs-core": "^4.13.0",
75+
"expo-camera": "^13.4.4",
76+
"expo-gl": "^13.0.1",
77+
"react": "*",
78+
"react-native": ">= 0.72.0",
79+
"react-native-fs": "^2.20.0"
8180
},
8281
"resolutions": {
8382
"minimist": "1.2.6"

0 commit comments

Comments
 (0)