chore: update @types/react-native and remove ts-ignore (#9518)

This commit is contained in:
Jesse Katsumata
2021-05-09 12:45:52 +09:00
committed by GitHub
parent 459fd27050
commit 6866ad2cda
10 changed files with 12 additions and 14 deletions

View File

@@ -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",

View File

@@ -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);
}
};