Skip to content

Commit 85606e7

Browse files
Evan YEvan Y
authored andcommitted
fix: react missing from context bug and config
1 parent be9878b commit 85606e7

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
.expo/
77

88
# VSCode
9-
.vscode/
109
jsconfig.json
1110

1211
# Xcode
@@ -67,4 +66,4 @@ android/keystores/debug.keystore
6766
.turbo/
6867

6968
# generated by bob
70-
lib/
69+
./lib/

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"husky": "^8.0.0",
7676
"jest": "^28.1.1",
7777
"prettier": "^3.2.5",
78+
"react": "^18.3.1",
7879
"react-dom": "^18.3.1",
7980
"react-native-builder-bob": "^0.20.4",
8081
"react-native-gesture-handler": "^2.15.0",
@@ -83,9 +84,6 @@
8384
"release-it": "^15.0.0",
8485
"typescript": "^4.5.2"
8586
},
86-
"resolutions": {
87-
"@types/react": "17.0.21"
88-
},
8987
"peerDependencies": {
9088
"@shopify/react-native-skia": "1.0.2",
9189
"react": ">=18.0.0",

src/components/LineChart/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Canvas, Path } from "@shopify/react-native-skia";
2-
import { useCallback, useMemo, useState } from "react";
2+
import React, { useCallback, useMemo, useState } from "react";
33
import { LayoutChangeEvent, StyleSheet, View, ViewProps } from "react-native";
44
import { GestureDetector } from "react-native-gesture-handler";
55
import { useSharedValue } from "react-native-reanimated";

src/lib/batchedUpdates.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { unstable_batchedUpdates as batchedUpdates } from "react-native";

src/lib/batchedUpdates.web.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { unstable_batchedUpdates as batchedUpdates } from "react-dom";

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@
21482148
dependencies:
21492149
"@types/react" "*"
21502150

2151-
"@types/react@*", "@types/react@17.0.21":
2151+
"@types/react@*":
21522152
version "17.0.21"
21532153
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.21.tgz#069c43177cd419afaab5ce26bb4e9056549f7ea6"
21542154
integrity sha512-GzzXCpOthOjXvrAUFQwU/svyxu658cwu00Q9ugujS4qc1zXgLFaO0kS2SLOaMWLt2Jik781yuHCWB7UcYdGAeQ==
@@ -7088,6 +7088,13 @@ react-reconciler@0.27.0:
70887088
loose-envify "^1.1.0"
70897089
scheduler "^0.21.0"
70907090

7091+
react@^18.3.1:
7092+
version "18.3.1"
7093+
resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891"
7094+
integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==
7095+
dependencies:
7096+
loose-envify "^1.1.0"
7097+
70917098
read-pkg-up@^3.0.0:
70927099
version "3.0.0"
70937100
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07"

0 commit comments

Comments
 (0)