@vvedantb/native-ui 0.34.0 → 0.35.0
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/README.md +1 -1
- package/dist/entries/layout.js +1 -0
- package/dist/index.js +1 -0
- package/dist/settings/ThemeModePicker.jsx +135 -0
- package/package.json +1 -1
- package/src/entries/layout.ts +2 -0
- package/src/index.ts +2 -0
- package/src/settings/ThemeModePicker.tsx +132 -0
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ The root entry exports everything. It still imports `BottomSheetContainer` and `
|
|
|
89
89
|
| `@vvedantb/native-ui/toast` | `toast`, `Toaster`, `ToastOptions`, `ToastVariant` | none (from 0.3.12) |
|
|
90
90
|
| `@vvedantb/native-ui/theme` | `NativeUiProvider`, `useNativeUi`, `useLargerText`, `useAccentColor`, `DEFAULT_ACCENT`, `tokens`, `palette`, `withAlpha`, `configureTheme` (with the `ThemeConfig`, `ThemeColors` and `ThemePalette` types), `fontClass`, `fontFamily` (with the `ThemeFonts` type), `cn`, `Colors` and the colour constants | none |
|
|
91
91
|
| `@vvedantb/native-ui/floating` | `FloatingSurface`, `GlassSheetBackground`, `LiquidGlass`, `GlassBlurProvider`, `GlassBlurTarget`, `FloatingFAB`, `useReduceTransparency`, the floating metrics and styles | `expo-blur` (loader) |
|
|
92
|
-
| `@vvedantb/native-ui/layout` | `ScreenContainer`, `SafeAreaContainer`, `PageTitle`, `PageHeader`, `StackPageHeader` (0.5.0) and their props types, `SectionLabel` (0.5.0), `SettingsSection`, `SettingsField`, `SettingsToggleRow`, `SettingsStack`, `MoreFromProjectV` and `FromProjectV` (0.8.0), `ScreenContainerProps`, `SettingsEmptyState`, `PinnedBotTile`, `BotPinGrid`, `ArtifactList` (0.12.0). `ScreenContainer` takes `refreshing`, `onRefresh` and `refreshControl` (0.12.0). `StackPageHeader` takes `centre` (0.12.0) | `expo-blur` (loader) |
|
|
92
|
+
| `@vvedantb/native-ui/layout` | `ScreenContainer`, `SafeAreaContainer`, `PageTitle`, `PageHeader`, `StackPageHeader` (0.5.0) and their props types, `SectionLabel` (0.5.0), `SettingsSection`, `SettingsField`, `SettingsToggleRow`, `SettingsStack`, `MoreFromProjectV` and `FromProjectV` (0.8.0), `ScreenContainerProps`, `SettingsEmptyState`, `PinnedBotTile`, `BotPinGrid`, `ArtifactList` (0.12.0). Unreleased: `ThemeModePicker`, `THEME_MODES` and `ThemeMode`, the web theme tiles for an Appearance section (needs `react-native-svg`). `ScreenContainer` takes `refreshing`, `onRefresh` and `refreshControl` (0.12.0). `StackPageHeader` takes `centre` (0.12.0) | `expo-blur` (loader) |
|
|
93
93
|
| `@vvedantb/native-ui/marketing` | `UpgradeToProCard`, `PricingModal` and the pricing types | none |
|
|
94
94
|
| `@vvedantb/native-ui/ambient` | `AmbientBackground` | `expo-linear-gradient` (loader) |
|
|
95
95
|
| `@vvedantb/native-ui/blur`, `/haptics` | the loaders | `expo-blur`, `expo-haptics` (loaders) |
|
package/dist/entries/layout.js
CHANGED
|
@@ -10,6 +10,7 @@ export { SettingsField } from "../settings/SettingsField";
|
|
|
10
10
|
export { SettingsToggleRow } from "../settings/SettingsToggleRow";
|
|
11
11
|
export { SettingsStack } from "../settings/SettingsStack";
|
|
12
12
|
export { SettingsEmptyState } from "../settings/SettingsEmptyState";
|
|
13
|
+
export { ThemeModePicker, THEME_MODES } from "../settings/ThemeModePicker";
|
|
13
14
|
export { PinnedBotTile, BotPinGrid } from "../PinnedBotTile";
|
|
14
15
|
export { ArtifactList } from "../ArtifactList";
|
|
15
16
|
export { MoreFromProjectV, FromProjectV } from "../settings/MoreFromProjectV";
|
package/dist/index.js
CHANGED
|
@@ -79,6 +79,7 @@ export { SettingsField } from "./settings/SettingsField";
|
|
|
79
79
|
export { SettingsToggleRow } from "./settings/SettingsToggleRow";
|
|
80
80
|
export { SettingsStack } from "./settings/SettingsStack";
|
|
81
81
|
export { SettingsEmptyState } from "./settings/SettingsEmptyState";
|
|
82
|
+
export { ThemeModePicker, THEME_MODES } from "./settings/ThemeModePicker";
|
|
82
83
|
export { PinnedBotTile, BotPinGrid } from "./PinnedBotTile";
|
|
83
84
|
export { ArtifactList } from "./ArtifactList";
|
|
84
85
|
export { MoreFromProjectV, FromProjectV } from "./settings/MoreFromProjectV";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { IconCheck, IconCircleHalf, IconDeviceDesktop, IconMoon, IconSun } from "@tabler/icons-react-native";
|
|
3
|
+
import { Pressable, StyleSheet, Text, View } from "react-native";
|
|
4
|
+
import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
|
|
5
|
+
import { cn } from "../cn";
|
|
6
|
+
import { sizeStyle, typeStyle } from "../controlStyles";
|
|
7
|
+
import { palette, withAlpha } from "../palette";
|
|
8
|
+
import { useLargerText } from "../theme";
|
|
9
|
+
import { tokens } from "../tokens";
|
|
10
|
+
import { useScheme } from "../useScheme";
|
|
11
|
+
|
|
12
|
+
/** A theme the picker can show, as the web `ThemeModePicker`. Neutral is the dark scheme with a grey palette. */
|
|
13
|
+
|
|
14
|
+
/** Default order: light to dark, then system. */
|
|
15
|
+
export const THEME_MODES = ["light", "neutral", "dark", "system"];
|
|
16
|
+
const LABELS = {
|
|
17
|
+
light: "Light",
|
|
18
|
+
neutral: "Neutral",
|
|
19
|
+
dark: "Dark",
|
|
20
|
+
system: "System"
|
|
21
|
+
};
|
|
22
|
+
const ICONS = {
|
|
23
|
+
light: IconSun,
|
|
24
|
+
neutral: IconCircleHalf,
|
|
25
|
+
dark: IconMoon,
|
|
26
|
+
system: IconDeviceDesktop
|
|
27
|
+
};
|
|
28
|
+
/** Web `bg-zinc-900`. */
|
|
29
|
+
const ZINC_900 = "#18181b";
|
|
30
|
+
// Swatches and icons show the theme itself, so they use the web's fixed colours, not tokens.
|
|
31
|
+
// System has no swatch colour (it is a gradient) and a muted icon.
|
|
32
|
+
const SWATCHES = {
|
|
33
|
+
light: "#ffffff",
|
|
34
|
+
neutral: "#3f3f46",
|
|
35
|
+
dark: ZINC_900,
|
|
36
|
+
system: null
|
|
37
|
+
};
|
|
38
|
+
const ICON_COLOURS = {
|
|
39
|
+
light: "#f59e0b",
|
|
40
|
+
neutral: "#d4d4d8",
|
|
41
|
+
dark: "#93c5fd",
|
|
42
|
+
system: null
|
|
43
|
+
};
|
|
44
|
+
/** The web System swatch, `bg-linear-to-br from-white to-zinc-900`. */
|
|
45
|
+
function GradientSwatch() {
|
|
46
|
+
const $ = _c(1);
|
|
47
|
+
let t0;
|
|
48
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49
|
+
t0 = <Svg width="100%" height="100%" style={StyleSheet.absoluteFill}><Defs><LinearGradient id="theme-mode-system" x1="0" y1="0" x2="1" y2="1"><Stop offset="0" stopColor="#ffffff" /><Stop offset="1" stopColor={ZINC_900} /></LinearGradient></Defs><Rect width="100%" height="100%" fill="url(#theme-mode-system)" /></Svg>;
|
|
50
|
+
$[0] = t0;
|
|
51
|
+
} else {
|
|
52
|
+
t0 = $[0];
|
|
53
|
+
}
|
|
54
|
+
return t0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Theme tiles for an Appearance settings section, as the web
|
|
59
|
+
* `ThemeModePicker`: a swatch with the theme icon over the label, in one row
|
|
60
|
+
* that the tiles share evenly. The selected tile gets the border, a primary
|
|
61
|
+
* wash and a check badge. The app owns the stored mode and how Neutral paints.
|
|
62
|
+
*/
|
|
63
|
+
export function ThemeModePicker(t0) {
|
|
64
|
+
const $ = _c(18);
|
|
65
|
+
const {
|
|
66
|
+
value,
|
|
67
|
+
onChange,
|
|
68
|
+
modes: t1,
|
|
69
|
+
className,
|
|
70
|
+
testID
|
|
71
|
+
} = t0;
|
|
72
|
+
const modes = t1 === undefined ? THEME_MODES : t1;
|
|
73
|
+
const scheme = useScheme();
|
|
74
|
+
const largerText = useLargerText();
|
|
75
|
+
const labelSize = largerText ? "text-base" : "text-sm";
|
|
76
|
+
let t2;
|
|
77
|
+
if ($[0] !== className) {
|
|
78
|
+
t2 = cn("flex-row gap-2", className);
|
|
79
|
+
$[0] = className;
|
|
80
|
+
$[1] = t2;
|
|
81
|
+
} else {
|
|
82
|
+
t2 = $[1];
|
|
83
|
+
}
|
|
84
|
+
let t3;
|
|
85
|
+
if ($[2] !== labelSize || $[3] !== modes || $[4] !== onChange || $[5] !== scheme || $[6] !== testID || $[7] !== value) {
|
|
86
|
+
let t4;
|
|
87
|
+
if ($[9] !== labelSize || $[10] !== onChange || $[11] !== scheme || $[12] !== testID || $[13] !== value) {
|
|
88
|
+
t4 = mode => {
|
|
89
|
+
const active = value === mode;
|
|
90
|
+
const Icon = ICONS[mode];
|
|
91
|
+
const swatch = SWATCHES[mode];
|
|
92
|
+
return <Pressable key={mode} testID={testID ? `${testID}-${mode}` : undefined} accessibilityRole="radio" accessibilityLabel={LABELS[mode]} accessibilityState={{
|
|
93
|
+
checked: active
|
|
94
|
+
}} onPress={() => onChange(mode)} className="flex-1 items-center gap-2 rounded-2xl border px-1 py-3 active:opacity-80" style={{
|
|
95
|
+
borderColor: active ? tokens.color.border[scheme] : "transparent",
|
|
96
|
+
backgroundColor: active ? withAlpha(palette.primary[scheme], 0.08) : withAlpha(tokens.color.surfaceSecondary[scheme], 0.4)
|
|
97
|
+
}}><View className="mx-2 h-12 items-center justify-center self-stretch overflow-hidden rounded-2xl" style={swatch ? {
|
|
98
|
+
backgroundColor: swatch
|
|
99
|
+
} : undefined}>{swatch ? null : <GradientSwatch />}<View className="absolute inset-0 items-center justify-center"><Icon size={22} color={ICON_COLOURS[mode] ?? tokens.color.muted[scheme]} /></View></View>{active ? <View className="absolute right-2 top-2 h-4 w-4 items-center justify-center rounded-full" style={{
|
|
100
|
+
backgroundColor: palette.primary[scheme]
|
|
101
|
+
}}><IconCheck size={10} strokeWidth={3} color={palette.primaryForeground[scheme]} /></View> : null}<Text numberOfLines={1} adjustsFontSizeToFit={true} className={cn("font-instrument-sans-medium", labelSize)} style={[sizeStyle(labelSize), typeStyle("medium"), {
|
|
102
|
+
color: active ? palette.primary[scheme] : tokens.color.muted[scheme]
|
|
103
|
+
}]}>{LABELS[mode]}</Text></Pressable>;
|
|
104
|
+
};
|
|
105
|
+
$[9] = labelSize;
|
|
106
|
+
$[10] = onChange;
|
|
107
|
+
$[11] = scheme;
|
|
108
|
+
$[12] = testID;
|
|
109
|
+
$[13] = value;
|
|
110
|
+
$[14] = t4;
|
|
111
|
+
} else {
|
|
112
|
+
t4 = $[14];
|
|
113
|
+
}
|
|
114
|
+
t3 = modes.map(t4);
|
|
115
|
+
$[2] = labelSize;
|
|
116
|
+
$[3] = modes;
|
|
117
|
+
$[4] = onChange;
|
|
118
|
+
$[5] = scheme;
|
|
119
|
+
$[6] = testID;
|
|
120
|
+
$[7] = value;
|
|
121
|
+
$[8] = t3;
|
|
122
|
+
} else {
|
|
123
|
+
t3 = $[8];
|
|
124
|
+
}
|
|
125
|
+
let t4;
|
|
126
|
+
if ($[15] !== t2 || $[16] !== t3) {
|
|
127
|
+
t4 = <View accessibilityRole="radiogroup" accessibilityLabel="Theme" className={t2}>{t3}</View>;
|
|
128
|
+
$[15] = t2;
|
|
129
|
+
$[16] = t3;
|
|
130
|
+
$[17] = t4;
|
|
131
|
+
} else {
|
|
132
|
+
t4 = $[17];
|
|
133
|
+
}
|
|
134
|
+
return t4;
|
|
135
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/native-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared React Native / Expo UI primitives. Floating surfaces, forms, overlays, toasts, settings chrome, tab bar, AI chat parts, the family app marks, a NativeWind preset, the Expo web root and Clerk + Convex auth screens.",
|
|
6
6
|
"type": "module",
|
package/src/entries/layout.ts
CHANGED
|
@@ -15,6 +15,8 @@ export { SettingsToggleRow } from "../settings/SettingsToggleRow";
|
|
|
15
15
|
export { SettingsStack } from "../settings/SettingsStack";
|
|
16
16
|
export { SettingsEmptyState } from "../settings/SettingsEmptyState";
|
|
17
17
|
export type { SettingsEmptyStateProps } from "../settings/SettingsEmptyState";
|
|
18
|
+
export { ThemeModePicker, THEME_MODES } from "../settings/ThemeModePicker";
|
|
19
|
+
export type { ThemeMode, ThemeModePickerProps } from "../settings/ThemeModePicker";
|
|
18
20
|
export { PinnedBotTile, BotPinGrid } from "../PinnedBotTile";
|
|
19
21
|
export type { PinnedBotTileProps, BotPinGridProps } from "../PinnedBotTile";
|
|
20
22
|
export { ArtifactList } from "../ArtifactList";
|
package/src/index.ts
CHANGED
|
@@ -225,6 +225,8 @@ export { SettingsToggleRow } from "./settings/SettingsToggleRow";
|
|
|
225
225
|
export { SettingsStack } from "./settings/SettingsStack";
|
|
226
226
|
export { SettingsEmptyState } from "./settings/SettingsEmptyState";
|
|
227
227
|
export type { SettingsEmptyStateProps } from "./settings/SettingsEmptyState";
|
|
228
|
+
export { ThemeModePicker, THEME_MODES } from "./settings/ThemeModePicker";
|
|
229
|
+
export type { ThemeMode, ThemeModePickerProps } from "./settings/ThemeModePicker";
|
|
228
230
|
export { PinnedBotTile, BotPinGrid } from "./PinnedBotTile";
|
|
229
231
|
export type { PinnedBotTileProps, BotPinGridProps } from "./PinnedBotTile";
|
|
230
232
|
export { ArtifactList } from "./ArtifactList";
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { IconCheck, IconCircleHalf, IconDeviceDesktop, IconMoon, IconSun } from "@tabler/icons-react-native";
|
|
2
|
+
import { Pressable, StyleSheet, Text, View } from "react-native";
|
|
3
|
+
import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
|
|
4
|
+
import { cn } from "../cn";
|
|
5
|
+
import { sizeStyle, typeStyle } from "../controlStyles";
|
|
6
|
+
import { palette, withAlpha } from "../palette";
|
|
7
|
+
import { useLargerText } from "../theme";
|
|
8
|
+
import { tokens } from "../tokens";
|
|
9
|
+
import { useScheme } from "../useScheme";
|
|
10
|
+
|
|
11
|
+
/** A theme the picker can show, as the web `ThemeModePicker`. Neutral is the dark scheme with a grey palette. */
|
|
12
|
+
export type ThemeMode = "light" | "neutral" | "dark" | "system";
|
|
13
|
+
|
|
14
|
+
/** Default order: light to dark, then system. */
|
|
15
|
+
export const THEME_MODES = ["light", "neutral", "dark", "system"] as const satisfies readonly ThemeMode[];
|
|
16
|
+
|
|
17
|
+
const LABELS: Record<ThemeMode, string> = { light: "Light", neutral: "Neutral", dark: "Dark", system: "System" };
|
|
18
|
+
const ICONS = { light: IconSun, neutral: IconCircleHalf, dark: IconMoon, system: IconDeviceDesktop };
|
|
19
|
+
/** Web `bg-zinc-900`. */
|
|
20
|
+
const ZINC_900 = "#18181b";
|
|
21
|
+
// Swatches and icons show the theme itself, so they use the web's fixed colours, not tokens.
|
|
22
|
+
// System has no swatch colour (it is a gradient) and a muted icon.
|
|
23
|
+
const SWATCHES: Record<ThemeMode, string | null> = {
|
|
24
|
+
light: "#ffffff",
|
|
25
|
+
neutral: "#3f3f46",
|
|
26
|
+
dark: ZINC_900,
|
|
27
|
+
system: null,
|
|
28
|
+
};
|
|
29
|
+
const ICON_COLOURS: Record<ThemeMode, string | null> = {
|
|
30
|
+
light: "#f59e0b",
|
|
31
|
+
neutral: "#d4d4d8",
|
|
32
|
+
dark: "#93c5fd",
|
|
33
|
+
system: null,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type ThemeModePickerProps = {
|
|
37
|
+
/** The stored choice, not the resolved scheme. */
|
|
38
|
+
value: string | undefined;
|
|
39
|
+
onChange: (mode: ThemeMode) => void;
|
|
40
|
+
/** Themes to show, in order. Default `THEME_MODES`. */
|
|
41
|
+
modes?: readonly ThemeMode[];
|
|
42
|
+
className?: string;
|
|
43
|
+
/** Each tile gets `${testID}-${mode}`. */
|
|
44
|
+
testID?: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** The web System swatch, `bg-linear-to-br from-white to-zinc-900`. */
|
|
48
|
+
function GradientSwatch() {
|
|
49
|
+
return (
|
|
50
|
+
// Sized by props: an unsized Svg is 300 wide and widens the tile.
|
|
51
|
+
<Svg width="100%" height="100%" style={StyleSheet.absoluteFill}>
|
|
52
|
+
<Defs>
|
|
53
|
+
<LinearGradient id="theme-mode-system" x1="0" y1="0" x2="1" y2="1">
|
|
54
|
+
<Stop offset="0" stopColor="#ffffff" />
|
|
55
|
+
<Stop offset="1" stopColor={ZINC_900} />
|
|
56
|
+
</LinearGradient>
|
|
57
|
+
</Defs>
|
|
58
|
+
<Rect width="100%" height="100%" fill="url(#theme-mode-system)" />
|
|
59
|
+
</Svg>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Theme tiles for an Appearance settings section, as the web
|
|
65
|
+
* `ThemeModePicker`: a swatch with the theme icon over the label, in one row
|
|
66
|
+
* that the tiles share evenly. The selected tile gets the border, a primary
|
|
67
|
+
* wash and a check badge. The app owns the stored mode and how Neutral paints.
|
|
68
|
+
*/
|
|
69
|
+
export function ThemeModePicker({ value, onChange, modes = THEME_MODES, className, testID }: ThemeModePickerProps) {
|
|
70
|
+
const scheme = useScheme();
|
|
71
|
+
const largerText = useLargerText();
|
|
72
|
+
const labelSize = largerText ? "text-base" : "text-sm";
|
|
73
|
+
return (
|
|
74
|
+
<View accessibilityRole="radiogroup" accessibilityLabel="Theme" className={cn("flex-row gap-2", className)}>
|
|
75
|
+
{modes.map((mode) => {
|
|
76
|
+
const active = value === mode;
|
|
77
|
+
const Icon = ICONS[mode];
|
|
78
|
+
const swatch = SWATCHES[mode];
|
|
79
|
+
return (
|
|
80
|
+
<Pressable
|
|
81
|
+
key={mode}
|
|
82
|
+
testID={testID ? `${testID}-${mode}` : undefined}
|
|
83
|
+
accessibilityRole="radio"
|
|
84
|
+
accessibilityLabel={LABELS[mode]}
|
|
85
|
+
accessibilityState={{ checked: active }}
|
|
86
|
+
onPress={() => onChange(mode)}
|
|
87
|
+
className="flex-1 items-center gap-2 rounded-2xl border px-1 py-3 active:opacity-80"
|
|
88
|
+
style={{
|
|
89
|
+
borderColor: active ? tokens.color.border[scheme] : "transparent",
|
|
90
|
+
backgroundColor: active
|
|
91
|
+
? withAlpha(palette.primary[scheme], 0.08)
|
|
92
|
+
: withAlpha(tokens.color.surfaceSecondary[scheme], 0.4),
|
|
93
|
+
}}
|
|
94
|
+
>
|
|
95
|
+
<View
|
|
96
|
+
className="mx-2 h-12 items-center justify-center self-stretch overflow-hidden rounded-2xl"
|
|
97
|
+
style={swatch ? { backgroundColor: swatch } : undefined}
|
|
98
|
+
>
|
|
99
|
+
{swatch ? null : <GradientSwatch />}
|
|
100
|
+
{/* Positioned, so the web build paints it over the positioned gradient. */}
|
|
101
|
+
<View className="absolute inset-0 items-center justify-center">
|
|
102
|
+
<Icon size={22} color={ICON_COLOURS[mode] ?? tokens.color.muted[scheme]} />
|
|
103
|
+
</View>
|
|
104
|
+
</View>
|
|
105
|
+
{/* After the swatch, so it draws over the swatch corner. */}
|
|
106
|
+
{active ? (
|
|
107
|
+
<View
|
|
108
|
+
className="absolute right-2 top-2 h-4 w-4 items-center justify-center rounded-full"
|
|
109
|
+
style={{ backgroundColor: palette.primary[scheme] }}
|
|
110
|
+
>
|
|
111
|
+
<IconCheck size={10} strokeWidth={3} color={palette.primaryForeground[scheme]} />
|
|
112
|
+
</View>
|
|
113
|
+
) : null}
|
|
114
|
+
{/* On a narrow phone at a large font scale, "Neutral" shrinks to fit, not wraps. */}
|
|
115
|
+
<Text
|
|
116
|
+
numberOfLines={1}
|
|
117
|
+
adjustsFontSizeToFit
|
|
118
|
+
className={cn("font-instrument-sans-medium", labelSize)}
|
|
119
|
+
style={[
|
|
120
|
+
sizeStyle(labelSize),
|
|
121
|
+
typeStyle("medium"),
|
|
122
|
+
{ color: active ? palette.primary[scheme] : tokens.color.muted[scheme] },
|
|
123
|
+
]}
|
|
124
|
+
>
|
|
125
|
+
{LABELS[mode]}
|
|
126
|
+
</Text>
|
|
127
|
+
</Pressable>
|
|
128
|
+
);
|
|
129
|
+
})}
|
|
130
|
+
</View>
|
|
131
|
+
);
|
|
132
|
+
}
|