-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBadgeScreen.tsx
More file actions
51 lines (50 loc) · 1.42 KB
/
BadgeScreen.tsx
File metadata and controls
51 lines (50 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import React from "react";
// import {
// useAnimatedStyle,
// useSharedValue,
// withSpring,
// } from "react-native-reanimated";
import {
// AdaptAnimatedBox,
// AnimatedBox,
BadgeNew,
BadgeText,
BadgeWrapper,
Box,
Button,
SpinnerNew,
} from "@adaptui/react-native-tailwind";
export const BadgeScreen = () => {
// const x = useSharedValue(1);
// const animatedStyles = useAnimatedStyle(() => {
// return {
// transform: [
// { scale: withSpring(x.value) },
// { translateX: withSpring(x.value * 37) },
// { translateY: withSpring(x.value * 23) },
// ],
// };
// });
return (
<Box className="flex-1 justify-center items-center bg-white-900">
{/* <AnimatedBox
className="h-10 w-10 bg-grayDark-200 rounded-md border-red-200"
style={animatedStyles}
/>
<AdaptAnimatedBox
className="h-10 w-10 bg-grayDark-200 rounded-md border-[1.5px] border-red-200"
style={animatedStyles}
/> */}
<Button onPress={() => (x.value = Math.random())}>Animate</Button>
<SpinnerNew track="visible" />
<BadgeNew size="lg" className="my-1" themeColor="secondary">
Scheduled
</BadgeNew>
<BadgeNew size="md" className="my-1 bg-teal-500" themeColor="secondary">
<>Badge</>
<BadgeWrapper className="bg-yellow-500" />
<BadgeText className="text-red-500" />
</BadgeNew>
</Box>
);
};