mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-25 21:15:26 +08:00
chore: update @types/react-native and remove ts-ignore (#9518)
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
"@testing-library/react-native": "^7.2.0",
|
||||
"@types/color": "^3.0.1",
|
||||
"@types/react": "^16.9.53",
|
||||
"@types/react-native": "~0.63.51",
|
||||
"@types/react-native": "~0.64.4",
|
||||
"del-cli": "^3.0.1",
|
||||
"react": "~16.13.1",
|
||||
"react-native": "~0.63.4",
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"@react-navigation/native": "^6.0.0-next.3",
|
||||
"@testing-library/react-native": "^7.2.0",
|
||||
"@types/react": "^16.9.53",
|
||||
"@types/react-native": "~0.63.51",
|
||||
"@types/react-native": "~0.64.4",
|
||||
"del-cli": "^3.0.1",
|
||||
"react": "~16.13.1",
|
||||
"react-native": "~0.63.4",
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
"@react-navigation/native": "^6.0.0-next.3",
|
||||
"@testing-library/react-native": "^7.2.0",
|
||||
"@types/react": "^16.9.53",
|
||||
"@types/react-native": "~0.63.51",
|
||||
"@types/react-native": "~0.64.4",
|
||||
"del-cli": "^3.0.1",
|
||||
"react": "~16.13.1",
|
||||
"react-native": "~0.63.4",
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"@react-navigation/native": "^6.0.0-next.3",
|
||||
"@testing-library/react-native": "^7.2.0",
|
||||
"@types/react": "^16.9.53",
|
||||
"@types/react-native": "~0.63.51",
|
||||
"@types/react-native": "~0.64.4",
|
||||
"@types/react-native-vector-icons": "^6.4.6",
|
||||
"del-cli": "^3.0.1",
|
||||
"react": "~16.13.1",
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
"@react-navigation/native": "^6.0.0-next.3",
|
||||
"@testing-library/react-native": "^7.2.0",
|
||||
"@types/react": "^16.9.53",
|
||||
"@types/react-native": "~0.63.51",
|
||||
"@types/react-native": "~0.64.4",
|
||||
"del-cli": "^3.0.1",
|
||||
"react": "~16.13.1",
|
||||
"react-native": "~0.63.4",
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"@testing-library/react-native": "^7.2.0",
|
||||
"@types/react": "^16.9.53",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
"@types/react-native": "~0.63.51",
|
||||
"@types/react-native": "~0.64.4",
|
||||
"del-cli": "^3.0.1",
|
||||
"react": "~16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
"@testing-library/react-native": "^7.2.0",
|
||||
"@types/color": "^3.0.1",
|
||||
"@types/react": "^16.9.53",
|
||||
"@types/react-native": "~0.63.51",
|
||||
"@types/react-native": "~0.64.4",
|
||||
"del-cli": "^3.0.1",
|
||||
"react": "~16.13.1",
|
||||
"react-native": "~0.63.4",
|
||||
|
||||
@@ -156,7 +156,6 @@ function CardContainer({
|
||||
);
|
||||
|
||||
React.useEffect(() => {
|
||||
// @ts-expect-error: AnimatedInterpolation optionally has addListener, but the type defs don't think so
|
||||
const listener = scene.progress.next?.addListener?.(
|
||||
({ value }: { value: number }) => {
|
||||
setPointerEvents(value <= EPSILON ? 'box-none' : 'none');
|
||||
@@ -165,7 +164,6 @@ function CardContainer({
|
||||
|
||||
return () => {
|
||||
if (listener) {
|
||||
// @ts-expect-error: AnimatedInterpolation optionally has removedListener, but the type defs don't think so
|
||||
scene.progress.next?.removeListener?.(listener);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user