Skip to content

Commit

Permalink
fix: react missing from context bug and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Y authored and Evan Y committed May 3, 2024
1 parent be9878b commit 85606e7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.expo/

# VSCode
.vscode/
jsconfig.json

# Xcode
Expand Down Expand Up @@ -67,4 +66,4 @@ android/keystores/debug.keystore
.turbo/

# generated by bob
lib/
./lib/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"husky": "^8.0.0",
"jest": "^28.1.1",
"prettier": "^3.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-native-builder-bob": "^0.20.4",
"react-native-gesture-handler": "^2.15.0",
Expand All @@ -83,9 +84,6 @@
"release-it": "^15.0.0",
"typescript": "^4.5.2"
},
"resolutions": {
"@types/react": "17.0.21"
},
"peerDependencies": {
"@shopify/react-native-skia": "1.0.2",
"react": ">=18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/LineChart/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Canvas, Path } from "@shopify/react-native-skia";
import { useCallback, useMemo, useState } from "react";
import React, { useCallback, useMemo, useState } from "react";
import { LayoutChangeEvent, StyleSheet, View, ViewProps } from "react-native";
import { GestureDetector } from "react-native-gesture-handler";
import { useSharedValue } from "react-native-reanimated";
Expand Down
1 change: 1 addition & 0 deletions src/lib/batchedUpdates.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { unstable_batchedUpdates as batchedUpdates } from "react-native";
1 change: 1 addition & 0 deletions src/lib/batchedUpdates.web.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { unstable_batchedUpdates as batchedUpdates } from "react-dom";
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@17.0.21":
"@types/react@*":
version "17.0.21"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.21.tgz#069c43177cd419afaab5ce26bb4e9056549f7ea6"
integrity sha512-GzzXCpOthOjXvrAUFQwU/svyxu658cwu00Q9ugujS4qc1zXgLFaO0kS2SLOaMWLt2Jik781yuHCWB7UcYdGAeQ==
Expand Down Expand Up @@ -7088,6 +7088,13 @@ react-reconciler@0.27.0:
loose-envify "^1.1.0"
scheduler "^0.21.0"

react@^18.3.1:
version "18.3.1"
resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891"
integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==
dependencies:
loose-envify "^1.1.0"

read-pkg-up@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07"
Expand Down

0 comments on commit 85606e7

Please sign in to comment.