Skip to content

Commit 75d7832

Browse files
committed
chore: build fix
1 parent ce3a4d9 commit 75d7832

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

example/lib/RNBounceable.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from "react";
2-
import { Animated, Pressable, PressableProps } from "react-native";
2+
import { Animated, Pressable, PressableProps, View } from "react-native";
3+
const AnimatedView: any = Animated.createAnimatedComponent(View);
34

45
export interface IRNBounceableProps extends PressableProps {
56
bounceEffectIn?: number;
@@ -70,7 +71,7 @@ const RNBounceableInner = (
7071
);
7172

7273
return (
73-
<Animated.View style={{ transform: [{ scale: bounceValue }] }}>
74+
<AnimatedView style={{ transform: [{ scale: bounceValue }] }}>
7475
<Pressable
7576
ref={ref as any}
7677
{...rest}
@@ -82,7 +83,7 @@ const RNBounceableInner = (
8283
>
8384
{children}
8485
</Pressable>
85-
</Animated.View>
86+
</AnimatedView>
8687
);
8788
};
8889

lib/RNBounceable.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from "react";
2-
import { Animated, Pressable, PressableProps } from "react-native";
2+
import { Animated, Pressable, PressableProps, View } from "react-native";
3+
const AnimatedView: any = Animated.createAnimatedComponent(View);
34

45
export interface IRNBounceableProps extends PressableProps {
56
bounceEffectIn?: number;
@@ -70,7 +71,7 @@ const RNBounceableInner = (
7071
);
7172

7273
return (
73-
<Animated.View style={{ transform: [{ scale: bounceValue }] }}>
74+
<AnimatedView style={{ transform: [{ scale: bounceValue }] }}>
7475
<Pressable
7576
ref={ref as any}
7677
{...rest}
@@ -82,7 +83,7 @@ const RNBounceableInner = (
8283
>
8384
{children}
8485
</Pressable>
85-
</Animated.View>
86+
</AnimatedView>
8687
);
8788
};
8889

0 commit comments

Comments
 (0)