diff --git a/.changeset/orange-suits-destroy.md b/.changeset/orange-suits-destroy.md new file mode 100644 index 00000000..7160bae4 --- /dev/null +++ b/.changeset/orange-suits-destroy.md @@ -0,0 +1,5 @@ +--- +"victory-native": patch +--- + +Changes compilation from react-native to react-jsx to fix web compliation diff --git a/lib/src/cartesian/hooks/useChartPressState.ts b/lib/src/cartesian/hooks/useChartPressState.ts index e5e73e01..d785ff35 100644 --- a/lib/src/cartesian/hooks/useChartPressState.ts +++ b/lib/src/cartesian/hooks/useChartPressState.ts @@ -67,6 +67,7 @@ const useIsPressActive = ( (val, oldVal) => { if (val !== oldVal) runOnJS(setIsPressActive)(val); }, + [value.isActive], ); return isPressActive; diff --git a/lib/tsconfig.build.json b/lib/tsconfig.build.json index 2f97b18e..ae5d0834 100644 --- a/lib/tsconfig.build.json +++ b/lib/tsconfig.build.json @@ -3,7 +3,7 @@ "exclude": ["src/**/*.test.ts"], "compilerOptions": { "target": "ES2016", - "jsx": "react-native", + "jsx": "react-jsx", "module": "CommonJS", "esModuleInterop": true, "strict": true,