newcandies 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,13 +15,6 @@ export default function TabLayout() {
|
|
|
15
15
|
tabBarIcon: ({ color }) => <TabBarIcon name="home" color={color} />,
|
|
16
16
|
}}
|
|
17
17
|
/>
|
|
18
|
-
<Tabs.Screen
|
|
19
|
-
name="two"
|
|
20
|
-
options={{
|
|
21
|
-
title: 'Explore',
|
|
22
|
-
tabBarIcon: ({ color }) => <TabBarIcon name="search" color={color} />,
|
|
23
|
-
}}
|
|
24
|
-
/>
|
|
25
18
|
</Tabs>
|
|
26
19
|
);
|
|
27
20
|
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Text as RNText, TextProps } from 'react-native';
|
|
2
|
-
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
|
|
4
|
-
type TypographyVariant =
|
|
5
|
-
| 'title'
|
|
6
|
-
| 'subtitle'
|
|
7
|
-
| 'body'
|
|
8
|
-
| 'caption'
|
|
9
|
-
| 'button'
|
|
10
|
-
| 'display'
|
|
11
|
-
| 'caption-primary'
|
|
12
|
-
| 'body-primary'
|
|
13
|
-
| 'subtitle-primary';
|
|
14
|
-
|
|
15
|
-
interface TextComponentProps extends TextProps {
|
|
16
|
-
className?: string;
|
|
17
|
-
variant?: TypographyVariant;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const variantStyles: Record<TypographyVariant, string> = {
|
|
21
|
-
title: 'text-2xl font-bold',
|
|
22
|
-
subtitle: 'text-xl font-semibold',
|
|
23
|
-
'subtitle-primary': 'text-xl font-semibold text-primary',
|
|
24
|
-
body: 'text-base',
|
|
25
|
-
'body-primary': 'text-base text-primary',
|
|
26
|
-
caption: 'text-sm font-medium',
|
|
27
|
-
'caption-primary': 'text-sm text-primary font-medium',
|
|
28
|
-
button: 'text-xl text-primary font-semibold text-white text-center',
|
|
29
|
-
display: 'text-3x font-bold',
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const Text = ({ variant = 'body', children, className, ...props }: TextComponentProps) => {
|
|
33
|
-
const textStyle = twMerge('text-black', variantStyles[variant], className);
|
|
34
|
-
return (
|
|
35
|
-
<RNText className={textStyle} {...props}>
|
|
36
|
-
{children}
|
|
37
|
-
</RNText>
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export default Text;
|
|
42
|
-
|