native-pytech 1.0.235 → 1.0.236
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/LICENSE +21 -21
- package/README.md +66 -66
- package/dist/libs/assets/components/RemoveCircle.js +4 -4
- package/dist/libs/assets/components/ReorderThreeOutline.js +6 -6
- package/dist/libs/assets/images/login_apple.svg +27 -27
- package/dist/libs/assets/images/login_letras.svg +40 -40
- package/dist/libs/assets/images/login_letras_dark.svg +40 -40
- package/dist/libs/assets/images/login_sol.svg +58 -58
- package/dist/libs/assets/images/logo_letras.svg +28 -28
- package/dist/libs/assets/images/logo_letras_dark.svg +28 -28
- package/dist/libs/assets/images/remove-circle.svg +3 -3
- package/dist/libs/assets/images/test.svg +22 -22
- package/dist/libs/assets/ionicons/Ionicons.js +2 -2
- package/dist/libs/colorPage/src/Content/index.android.js +4 -4
- package/dist/libs/colorPage/src/Content/index.ios.js +10 -10
- package/dist/libs/colorPage/src/Content/index.js +4 -4
- package/dist/libs/colorPage/src/Item/index.android.js +15 -15
- package/dist/libs/colorPage/src/Item/index.ios.js +2 -2
- package/dist/libs/colorPage/src/Item/index.js +2 -2
- package/dist/libs/colorPage/src/Page/index.js +3 -3
- package/dist/libs/components/CloseButton.js +2 -2
- package/dist/libs/components/Gradient/components/Gradient/index.js +5 -5
- package/dist/libs/components/Link.js +7 -7
- package/dist/libs/components/Text.js +2 -2
- package/dist/libs/editPage/src/components/Header/index.js +12 -12
- package/dist/libs/editPage/src/components/Header/index.web.js +2 -2
- package/dist/libs/editPage/src/components/Item/index.ios.js +4 -4
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.js +5 -5
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.js +5 -5
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.js +5 -5
- package/dist/libs/editPage/src/components/Screen/index.js +4 -4
- package/dist/libs/footer/src/components/Background/index.js +2 -2
- package/dist/libs/footer/src/components/Button/Text.js +2 -2
- package/dist/libs/footer/src/components/Button/index.ios.js +4 -4
- package/dist/libs/footer/src/components/Button/index.js +2 -2
- package/dist/libs/footer/src/components/Footer/index.ios.js +4 -4
- package/dist/libs/footer/src/components/Footer/index.js +13 -13
- package/dist/libs/footer/src/components/View.js +2 -2
- package/dist/libs/login/src/Pages/Home/index.js +3 -3
- package/dist/libs/login/src/Pages/SignIn/Form/index.js +13 -13
- package/dist/libs/login/src/Pages/SignIn/index.js +24 -24
- package/dist/libs/login/src/Screen/Container.ios.js +4 -4
- package/dist/libs/login/src/Screen/Container.js +8 -8
- package/dist/libs/login/src/Screen/components/Gradient.js +2 -2
- package/dist/libs/login/src/Screen/components/Input/index.js +21 -21
- package/dist/libs/login/src/Screen/index.js +14 -14
- package/dist/libs/page/src/components/Page/index.android.js +4 -4
- package/dist/libs/page/src/components/Page/index.js +2 -2
- package/dist/libs/page/src/components/PageWrapper/index.js +2 -2
- package/dist/libs/page/src/components/WithIcon/index.js +10 -10
- package/dist/libs/pickerPage/src/components/Content/index.ios.js +8 -8
- package/dist/libs/pickerPage/src/components/Content/index.js +6 -6
- package/dist/libs/pickerPage/src/components/Item/index.js +5 -5
- package/dist/libs/pickerPage/src/components/Page/index.js +12 -12
- package/dist/libs/providers/App/index.js +8 -8
- package/dist/libs/providers/App/styles.css +16 -16
- package/dist/libs/sections/Icon/src/Section.ios.js +4 -4
- package/dist/libs/sections/Icon/src/index.ios.js +13 -13
- package/dist/libs/sections/Icon/src/index.js +15 -15
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +2 -2
- package/dist/libs/segmentedControl/src/components/Container/index.ios.js +2 -2
- package/dist/libs/segmentedControl/src/components/Container/index.js +2 -2
- package/dist/libs/segmentedControl/src/components/Item/index.js +4 -4
- package/dist/libs/segmentedControl/src/components/Segmented/index.js +10 -10
- package/dist/libs/segmentedControl/src/components/Wrapper/index.js +2 -2
- package/dist/libs/segmentedControl/src/context/shared.js +2 -2
- package/dist/libs/swiftui/src/components/Dialog/index.js +12 -12
- package/dist/libs/swiftui/src/components/Icon.js +3 -3
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +13 -13
- package/dist/libs/swiftui/src/components/IconSection/Section.js +4 -4
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +2 -2
- package/dist/libs/swiftui/src/components/List/Editable/List/index.js +4 -4
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +4 -4
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +7 -7
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +6 -6
- package/dist/libs/swiftui/src/components/Picker.js +4 -4
- package/dist/libs/swiftui/src/components/TextSubtitle.js +3 -3
- package/dist/libs/table/src/components/Borders.js +3 -3
- package/dist/libs/table/src/components/Delete/index.js +16 -16
- package/dist/libs/table/src/components/Detail.js +2 -2
- package/dist/libs/table/src/components/Option/index.js +18 -17
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +2 -2
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +2 -2
- package/dist/libs/table/src/components/OptionComponents/text.js +3 -3
- package/dist/libs/table/src/components/OptionComponents/textView.js +2 -2
- package/dist/libs/table/src/components/Table/index.js +19 -19
- package/dist/libs/table/src/components/Wrapper.js +15 -15
- package/dist/libs/table/src/context/borders.js +2 -2
- package/package.json +87 -87
|
@@ -4,9 +4,9 @@ import TextField from '../TextField';
|
|
|
4
4
|
export default memo(({ label, minLengthSpacer, ...textFieldProps }) => {
|
|
5
5
|
if (!label)
|
|
6
6
|
return <TextField {...textFieldProps}/>;
|
|
7
|
-
return (<HStack>
|
|
8
|
-
<Text>{label}</Text>
|
|
9
|
-
<Spacer minLength={minLengthSpacer}/>
|
|
10
|
-
<TextField {...textFieldProps}/>
|
|
7
|
+
return (<HStack>
|
|
8
|
+
<Text>{label}</Text>
|
|
9
|
+
<Spacer minLength={minLengthSpacer}/>
|
|
10
|
+
<TextField {...textFieldProps}/>
|
|
11
11
|
</HStack>);
|
|
12
12
|
});
|
|
@@ -12,16 +12,16 @@ export default memo(({ label, selection, minDate, maxDate, onValueChange, }) =>
|
|
|
12
12
|
const value = new Date(year, month - 1, day);
|
|
13
13
|
onValueChange?.(value);
|
|
14
14
|
}, []);
|
|
15
|
-
return (<Table.Option id={label ?? ''} colorScheme={colorScheme} childrenLeft={<Table.Option.Components.Text text={label ?? 'Seleccione una fecha'}/>} childrenRight={(<>
|
|
16
|
-
<Pressable onPress={() => inputRef.current?.showPicker()} style={[styles.container, { backgroundColor: Colors.especiales.azul }]}>
|
|
17
|
-
<Table.Option.Components.Text text={Formats.dateToTextFormat(selection, 'dd/MM/yyyy')} style={{ color: 'white', userSelect: 'none' }}/>
|
|
15
|
+
return (<Table.Option id={label ?? ''} colorScheme={colorScheme} childrenLeft={<Table.Option.Components.Text text={label ?? 'Seleccione una fecha'}/>} childrenRight={(<>
|
|
16
|
+
<Pressable onPress={() => inputRef.current?.showPicker()} style={[styles.container, { backgroundColor: Colors.especiales.azul }]}>
|
|
17
|
+
<Table.Option.Components.Text text={Formats.dateToTextFormat(selection, 'dd/MM/yyyy')} style={{ color: 'white', userSelect: 'none' }}/>
|
|
18
18
|
<input ref={inputRef} type="date" value={Formats.dateToTextFormat(selection, 'yyyy-MM-dd')} onChange={(e) => _onValueChange(e.target.value)} style={{
|
|
19
19
|
all: 'unset',
|
|
20
20
|
visibility: 'hidden',
|
|
21
21
|
width: 0,
|
|
22
22
|
position: 'absolute'
|
|
23
|
-
}}/>
|
|
24
|
-
</Pressable>
|
|
23
|
+
}}/>
|
|
24
|
+
</Pressable>
|
|
25
25
|
</>)}/>);
|
|
26
26
|
});
|
|
27
27
|
const styles = StyleSheet.create({
|
|
@@ -15,16 +15,16 @@ export default memo(({ label, selection, minDate, maxDate, onValueChange, }) =>
|
|
|
15
15
|
value.setHours(hours, minutes, 0, 0);
|
|
16
16
|
onValueChange?.(value);
|
|
17
17
|
}, []);
|
|
18
|
-
return (<Table.Option id={label ?? ''} colorScheme={colorScheme} childrenLeft={<Table.Option.Components.Text text={label ?? 'Seleccione una hora'}/>} childrenRight={(<>
|
|
19
|
-
<Pressable onPress={() => inputRef.current?.showPicker()} style={[styles.container, { backgroundColor: Colors.especiales.azul }]}>
|
|
20
|
-
<Table.Option.Components.Text text={Formats.dateToTextFormat(selection, 'HH:mm')} style={{ color: 'white', userSelect: 'none' }}/>
|
|
18
|
+
return (<Table.Option id={label ?? ''} colorScheme={colorScheme} childrenLeft={<Table.Option.Components.Text text={label ?? 'Seleccione una hora'}/>} childrenRight={(<>
|
|
19
|
+
<Pressable onPress={() => inputRef.current?.showPicker()} style={[styles.container, { backgroundColor: Colors.especiales.azul }]}>
|
|
20
|
+
<Table.Option.Components.Text text={Formats.dateToTextFormat(selection, 'HH:mm')} style={{ color: 'white', userSelect: 'none' }}/>
|
|
21
21
|
<input ref={inputRef} type="date" value={Formats.dateToTextFormat(selection, 'HH:mm')} onChange={(e) => _onValueChange(e.target.value)} style={{
|
|
22
22
|
all: 'unset',
|
|
23
23
|
visibility: 'hidden',
|
|
24
24
|
width: 0,
|
|
25
25
|
position: 'absolute'
|
|
26
|
-
}}/>
|
|
27
|
-
</Pressable>
|
|
26
|
+
}}/>
|
|
27
|
+
</Pressable>
|
|
28
28
|
</>)}/>);
|
|
29
29
|
});
|
|
30
30
|
const styles = StyleSheet.create({
|
|
@@ -15,16 +15,16 @@ export default memo(({ label, selection, minDate, maxDate, onValueChange, }) =>
|
|
|
15
15
|
value.setHours(hours, minutes, 0, 0);
|
|
16
16
|
onValueChange?.(value);
|
|
17
17
|
}, []);
|
|
18
|
-
return (<Table.Option id={label ?? ''} colorScheme={colorScheme} childrenLeft={<Table.Option.Components.Text text={label ?? 'Seleccione una hora'}/>} childrenRight={(<>
|
|
19
|
-
<Pressable onPress={() => inputRef.current?.showPicker()} style={[styles.container, { backgroundColor: Colors.especiales.azul }]}>
|
|
20
|
-
<Table.Option.Components.Text text={Formats.dateToTextFormat(selection, 'HH:mm')} style={{ color: 'white', userSelect: 'none' }}/>
|
|
18
|
+
return (<Table.Option id={label ?? ''} colorScheme={colorScheme} childrenLeft={<Table.Option.Components.Text text={label ?? 'Seleccione una hora'}/>} childrenRight={(<>
|
|
19
|
+
<Pressable onPress={() => inputRef.current?.showPicker()} style={[styles.container, { backgroundColor: Colors.especiales.azul }]}>
|
|
20
|
+
<Table.Option.Components.Text text={Formats.dateToTextFormat(selection, 'HH:mm')} style={{ color: 'white', userSelect: 'none' }}/>
|
|
21
21
|
<input ref={inputRef} type="date" value={Formats.dateToTextFormat(selection, 'HH:mm')} onChange={(e) => _onValueChange(e.target.value)} style={{
|
|
22
22
|
all: 'unset',
|
|
23
23
|
visibility: 'hidden',
|
|
24
24
|
width: 0,
|
|
25
25
|
position: 'absolute'
|
|
26
|
-
}}/>
|
|
27
|
-
</Pressable>
|
|
26
|
+
}}/>
|
|
27
|
+
</Pressable>
|
|
28
28
|
</>)}/>);
|
|
29
29
|
});
|
|
30
30
|
const styles = StyleSheet.create({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ScrollView } from 'react-native';
|
|
2
2
|
import Table from '../../../../../libs/table';
|
|
3
|
-
export default ({ children }) => (<ScrollView>
|
|
4
|
-
<Table>
|
|
5
|
-
{children}
|
|
6
|
-
</Table>
|
|
3
|
+
export default ({ children }) => (<ScrollView>
|
|
4
|
+
<Table>
|
|
5
|
+
{children}
|
|
6
|
+
</Table>
|
|
7
7
|
</ScrollView>);
|
|
@@ -15,7 +15,7 @@ export default memo(({ backgroundColorPage }) => {
|
|
|
15
15
|
c09
|
|
16
16
|
]} start={{ x: 0.5, y: 0 }} // arriba-centro
|
|
17
17
|
end={{ x: 0.5, y: 1 }} // abajo-centro
|
|
18
|
-
style={[StyleSheet.absoluteFill]}/>}>
|
|
19
|
-
<View style={[StyleSheet.absoluteFill, { backgroundColor: backgroundColorPage }]}></View>
|
|
18
|
+
style={[StyleSheet.absoluteFill]}/>}>
|
|
19
|
+
<View style={[StyleSheet.absoluteFill, { backgroundColor: backgroundColorPage }]}></View>
|
|
20
20
|
</MaskedView>);
|
|
21
21
|
});
|
|
@@ -6,8 +6,8 @@ export default memo(({ text, enabled, themeColor = 'default' }) => {
|
|
|
6
6
|
const { colorScheme } = useApp();
|
|
7
7
|
const Theme = colors.theme[colorScheme];
|
|
8
8
|
const color = useMemo(() => enabled ? (themeColor === 'default' ? colors.especiales.celeste : Theme.text2) : Theme.colorTextButtonFooterDisabled, [enabled, themeColor]);
|
|
9
|
-
return (<Text style={[styles.text, { color: color }]}>
|
|
10
|
-
{text}
|
|
9
|
+
return (<Text style={[styles.text, { color: color }]}>
|
|
10
|
+
{text}
|
|
11
11
|
</Text>);
|
|
12
12
|
});
|
|
13
13
|
const styles = StyleSheet.create({
|
|
@@ -22,9 +22,9 @@ export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = t
|
|
|
22
22
|
}
|
|
23
23
|
onSubmit?.();
|
|
24
24
|
}, [onPress, onSubmit]);
|
|
25
|
-
return (<Button onPress={_onPress} modifiers={modifiers}>
|
|
26
|
-
<Text modifiers={modifiersText}>
|
|
27
|
-
{text}
|
|
28
|
-
</Text>
|
|
25
|
+
return (<Button onPress={_onPress} modifiers={modifiers}>
|
|
26
|
+
<Text modifiers={modifiersText}>
|
|
27
|
+
{text}
|
|
28
|
+
</Text>
|
|
29
29
|
</Button>);
|
|
30
30
|
});
|
|
@@ -37,8 +37,8 @@ export default memo(({ text, onPress, onSubmit, backgroundColorPage, enabled = t
|
|
|
37
37
|
backgroundColor: backgroundColor(pressed),
|
|
38
38
|
borderColor: backgroundColor(true)
|
|
39
39
|
}
|
|
40
|
-
]}>
|
|
41
|
-
{!isLoading ? (<Text text={text} enabled={enabled} themeColor={themeColor}/>) : (<ActivityIndicator size='small' style={{ margin: 'auto' }} color={color}/>)}
|
|
40
|
+
]}>
|
|
41
|
+
{!isLoading ? (<Text text={text} enabled={enabled} themeColor={themeColor}/>) : (<ActivityIndicator size='small' style={{ margin: 'auto' }} color={color}/>)}
|
|
42
42
|
</Pressable>);
|
|
43
43
|
});
|
|
44
44
|
const styles = StyleSheet.create({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
2
|
import { Overlay, VStack } from '@expo/ui/swift-ui';
|
|
3
3
|
export default memo(({ children, backgroundColorPage }) => {
|
|
4
|
-
return (<Overlay.Content>
|
|
5
|
-
<VStack spacing={10}>
|
|
6
|
-
{children}
|
|
7
|
-
</VStack>
|
|
4
|
+
return (<Overlay.Content>
|
|
5
|
+
<VStack spacing={10}>
|
|
6
|
+
{children}
|
|
7
|
+
</VStack>
|
|
8
8
|
</Overlay.Content>);
|
|
9
9
|
});
|
|
@@ -8,19 +8,19 @@ import Background from '../Background';
|
|
|
8
8
|
import ButtonView from '../View';
|
|
9
9
|
export default memo(({ children, backgroundColorPage }) => {
|
|
10
10
|
const insets = useSafeAreaInsets();
|
|
11
|
-
return (<View style={styles.footer}>
|
|
12
|
-
<MaskedView style={[StyleSheet.absoluteFill]} maskElement={<LinearGradient colors={['transparent', 'transparent', 'rgba(0, 0, 0, 0.8)', 'black', 'black']} locations={[0, 0.05, 0.2, 0.5, 1]} style={StyleSheet.absoluteFill}/>}>
|
|
13
|
-
<BlurView intensity={6} tint='dark' style={StyleSheet.absoluteFill}/>
|
|
14
|
-
</MaskedView>
|
|
15
|
-
|
|
16
|
-
{backgroundColorPage && <Background backgroundColorPage={backgroundColorPage}/>}
|
|
17
|
-
|
|
18
|
-
<View style={[styles.view, { paddingBottom: insets.bottom + 5 }]}>
|
|
19
|
-
<ButtonView>
|
|
20
|
-
{children}
|
|
21
|
-
</ButtonView>
|
|
22
|
-
</View>
|
|
23
|
-
|
|
11
|
+
return (<View style={styles.footer}>
|
|
12
|
+
<MaskedView style={[StyleSheet.absoluteFill]} maskElement={<LinearGradient colors={['transparent', 'transparent', 'rgba(0, 0, 0, 0.8)', 'black', 'black']} locations={[0, 0.05, 0.2, 0.5, 1]} style={StyleSheet.absoluteFill}/>}>
|
|
13
|
+
<BlurView intensity={6} tint='dark' style={StyleSheet.absoluteFill}/>
|
|
14
|
+
</MaskedView>
|
|
15
|
+
|
|
16
|
+
{backgroundColorPage && <Background backgroundColorPage={backgroundColorPage}/>}
|
|
17
|
+
|
|
18
|
+
<View style={[styles.view, { paddingBottom: insets.bottom + 5 }]}>
|
|
19
|
+
<ButtonView>
|
|
20
|
+
{children}
|
|
21
|
+
</ButtonView>
|
|
22
|
+
</View>
|
|
23
|
+
|
|
24
24
|
</View>);
|
|
25
25
|
});
|
|
26
26
|
const styles = StyleSheet.create({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View, StyleSheet } from 'react-native';
|
|
2
2
|
import { memo } from 'react';
|
|
3
|
-
export default memo(({ children }) => (<View style={styles.view}>
|
|
4
|
-
{children}
|
|
3
|
+
export default memo(({ children }) => (<View style={styles.view}>
|
|
4
|
+
{children}
|
|
5
5
|
</View>));
|
|
6
6
|
const styles = StyleSheet.create({
|
|
7
7
|
view: {
|
|
@@ -5,8 +5,8 @@ import { handleSubmitLogIn } from '../utils';
|
|
|
5
5
|
import Link from '../../../../../libs/components/Link';
|
|
6
6
|
export default memo(({ title = 'MiApp', subtitle = 'Inicia sesión con un correo electrónico o nombre de usuario para usar la aplicación.', iconPage = <Screen.SvgPytech />, textCreateAccount, enableCreateAccount = false, }) => {
|
|
7
7
|
const router = useRouter();
|
|
8
|
-
return (<Screen iconPage={iconPage} title={title} subtitle={subtitle} bottomElements={<>
|
|
9
|
-
<Screen.Input placeholder='Correo o nombre de usuario' keyboardType='email-address' autoComplete='email' handleSubmit={async ({ value }) => await handleSubmitLogIn({ username: value, router })}/>
|
|
10
|
-
{enableCreateAccount && (<Link text={textCreateAccount || `Crear tu cuenta de ${title}`} onPress={({ router }) => router.push({ pathname: '/login/inicio/signIn' })}/>)}
|
|
8
|
+
return (<Screen iconPage={iconPage} title={title} subtitle={subtitle} bottomElements={<>
|
|
9
|
+
<Screen.Input placeholder='Correo o nombre de usuario' keyboardType='email-address' autoComplete='email' handleSubmit={async ({ value }) => await handleSubmitLogIn({ username: value, router })}/>
|
|
10
|
+
{enableCreateAccount && (<Link text={textCreateAccount || `Crear tu cuenta de ${title}`} onPress={({ router }) => router.push({ pathname: '/login/inicio/signIn' })}/>)}
|
|
11
11
|
</>}/>);
|
|
12
12
|
});
|
|
@@ -6,19 +6,19 @@ import Input from "./Input";
|
|
|
6
6
|
export default memo(({ store }) => {
|
|
7
7
|
const { colorScheme } = useApp();
|
|
8
8
|
const Theme = colors.theme[colorScheme];
|
|
9
|
-
return (<>
|
|
10
|
-
<View style={styles.view}>
|
|
11
|
-
<Input store={store} fieldName="name" placeholder='Nombre' autoComplete='given-name' autoFocus={Platform.OS === 'web'} buttonSend={false} autoCapitalize='words'/>
|
|
12
|
-
<Input store={store} fieldName="lastName" placeholder='Apellidos' autoComplete='family-name' autoFocus={Platform.OS === 'web'} buttonSend={false} autoCapitalize='words'/>
|
|
13
|
-
</View>
|
|
14
|
-
|
|
15
|
-
<View style={[styles.hr, { backgroundColor: Theme.borderColor5 }]}/>
|
|
16
|
-
|
|
17
|
-
<View style={styles.view}>
|
|
18
|
-
<Input store={store} fieldName="email" placeholder='nombre@example.com' autoComplete='email' autoFocus={Platform.OS === 'web'} buttonSend={false}/>
|
|
19
|
-
<Input store={store} fieldName="newPassword" placeholder='Contraseña' autoComplete='new-password' autoFocus={Platform.OS === 'web'} buttonSend={false} secureTextEntry={true}/>
|
|
20
|
-
<Input store={store} fieldName="confirmPassword" placeholder='Contraseña' autoComplete='new-password' autoFocus={Platform.OS === 'web'} buttonSend={false} secureTextEntry={true}/>
|
|
21
|
-
</View>
|
|
9
|
+
return (<>
|
|
10
|
+
<View style={styles.view}>
|
|
11
|
+
<Input store={store} fieldName="name" placeholder='Nombre' autoComplete='given-name' autoFocus={Platform.OS === 'web'} buttonSend={false} autoCapitalize='words'/>
|
|
12
|
+
<Input store={store} fieldName="lastName" placeholder='Apellidos' autoComplete='family-name' autoFocus={Platform.OS === 'web'} buttonSend={false} autoCapitalize='words'/>
|
|
13
|
+
</View>
|
|
14
|
+
|
|
15
|
+
<View style={[styles.hr, { backgroundColor: Theme.borderColor5 }]}/>
|
|
16
|
+
|
|
17
|
+
<View style={styles.view}>
|
|
18
|
+
<Input store={store} fieldName="email" placeholder='nombre@example.com' autoComplete='email' autoFocus={Platform.OS === 'web'} buttonSend={false}/>
|
|
19
|
+
<Input store={store} fieldName="newPassword" placeholder='Contraseña' autoComplete='new-password' autoFocus={Platform.OS === 'web'} buttonSend={false} secureTextEntry={true}/>
|
|
20
|
+
<Input store={store} fieldName="confirmPassword" placeholder='Contraseña' autoComplete='new-password' autoFocus={Platform.OS === 'web'} buttonSend={false} secureTextEntry={true}/>
|
|
21
|
+
</View>
|
|
22
22
|
</>);
|
|
23
23
|
});
|
|
24
24
|
const styles = StyleSheet.create({
|
|
@@ -89,28 +89,28 @@ export default memo(({ title = 'Apple', subtitle, iconPage = <Screen.SvgLogoPyte
|
|
|
89
89
|
return !error;
|
|
90
90
|
};
|
|
91
91
|
const onSubmit = () => router.replace('/login/inicio');
|
|
92
|
-
return (<>
|
|
93
|
-
<Page style={{ paddingHorizontal: 40, marginTop: 34, paddingBottom: 200 }}>
|
|
94
|
-
<View style={styles.viewTitle}>
|
|
95
|
-
|
|
96
|
-
{iconPage}
|
|
97
|
-
|
|
98
|
-
<Text style={[styles.title, { color: Theme.text }]} adjustsFontSizeToFit numberOfLines={1} minimumFontScale={0.5}>
|
|
99
|
-
{`Crear tu cuenta de ${title}`}
|
|
100
|
-
</Text>
|
|
101
|
-
|
|
102
|
-
<View style={{ alignItems: 'center', justifyContent: 'center', gap: 1 }}>
|
|
103
|
-
<Text style={[styles.subtitle, { color: Theme.text }]}>{_subtitle}</Text>
|
|
104
|
-
<Link text='Inicia sesión' onPress={({ router }) => router.replace('/login/inicio')} renderItems={({ pressed }) => <Ionicons name="arrow-forward-outline" size={15} color='hsl(207, 100%, 50%)' style={{ transform: [{ rotate: '315deg' }] }}/>} style={{ fontSize: 17 }}/>
|
|
105
|
-
</View>
|
|
106
|
-
</View>
|
|
107
|
-
|
|
108
|
-
<View style={styles.container}>
|
|
109
|
-
<Form store={store}/>
|
|
110
|
-
</View>
|
|
111
|
-
</Page>
|
|
112
|
-
|
|
113
|
-
<Footer backgroundColorPage={Theme.backgroundColorModal2}>
|
|
92
|
+
return (<>
|
|
93
|
+
<Page style={{ paddingHorizontal: 40, marginTop: 34, paddingBottom: 200 }}>
|
|
94
|
+
<View style={styles.viewTitle}>
|
|
95
|
+
|
|
96
|
+
{iconPage}
|
|
97
|
+
|
|
98
|
+
<Text style={[styles.title, { color: Theme.text }]} adjustsFontSizeToFit numberOfLines={1} minimumFontScale={0.5}>
|
|
99
|
+
{`Crear tu cuenta de ${title}`}
|
|
100
|
+
</Text>
|
|
101
|
+
|
|
102
|
+
<View style={{ alignItems: 'center', justifyContent: 'center', gap: 1 }}>
|
|
103
|
+
<Text style={[styles.subtitle, { color: Theme.text }]}>{_subtitle}</Text>
|
|
104
|
+
<Link text='Inicia sesión' onPress={({ router }) => router.replace('/login/inicio')} renderItems={({ pressed }) => <Ionicons name="arrow-forward-outline" size={15} color='hsl(207, 100%, 50%)' style={{ transform: [{ rotate: '315deg' }] }}/>} style={{ fontSize: 17 }}/>
|
|
105
|
+
</View>
|
|
106
|
+
</View>
|
|
107
|
+
|
|
108
|
+
<View style={styles.container}>
|
|
109
|
+
<Form store={store}/>
|
|
110
|
+
</View>
|
|
111
|
+
</Page>
|
|
112
|
+
|
|
113
|
+
<Footer backgroundColorPage={Theme.backgroundColorModal2}>
|
|
114
114
|
<Footer.Button text='Crear cuenta' enabled={createAccountEnabled} backgroundColorPage={Theme.backgroundColorModal2} onPress={async () => {
|
|
115
115
|
const fields = store.fields.peek();
|
|
116
116
|
return await onPress({
|
|
@@ -119,8 +119,8 @@ export default memo(({ title = 'Apple', subtitle, iconPage = <Screen.SvgLogoPyte
|
|
|
119
119
|
email: fields.email.value || '',
|
|
120
120
|
password: fields.newPassword.value || ''
|
|
121
121
|
});
|
|
122
|
-
}} onSubmit={onSubmit}/>
|
|
123
|
-
</Footer>
|
|
122
|
+
}} onSubmit={onSubmit}/>
|
|
123
|
+
</Footer>
|
|
124
124
|
</>);
|
|
125
125
|
});
|
|
126
126
|
const styles = StyleSheet.create({
|
|
@@ -5,10 +5,10 @@ import colors from '../constants';
|
|
|
5
5
|
export default memo(({ children }) => {
|
|
6
6
|
const { colorScheme } = useApp();
|
|
7
7
|
const Theme = colors.theme[colorScheme];
|
|
8
|
-
return (<TouchableWithoutFeedback>
|
|
9
|
-
<ScrollView contentContainerStyle={[styles.pagina, { backgroundColor: Theme.backgroundColor }]} automaticallyAdjustKeyboardInsets={true}>
|
|
10
|
-
{children}
|
|
11
|
-
</ScrollView>
|
|
8
|
+
return (<TouchableWithoutFeedback>
|
|
9
|
+
<ScrollView contentContainerStyle={[styles.pagina, { backgroundColor: Theme.backgroundColor }]} automaticallyAdjustKeyboardInsets={true}>
|
|
10
|
+
{children}
|
|
11
|
+
</ScrollView>
|
|
12
12
|
</TouchableWithoutFeedback>);
|
|
13
13
|
});
|
|
14
14
|
const styles = StyleSheet.create({
|
|
@@ -6,14 +6,14 @@ export default memo(({ children }) => {
|
|
|
6
6
|
const { height } = useWindowDimensions();
|
|
7
7
|
const { colorScheme } = useApp();
|
|
8
8
|
const Theme = colors.theme[colorScheme];
|
|
9
|
-
return (<TouchableWithoutFeedback>
|
|
10
|
-
<KeyboardAvoidingView behavior={'height'} style={{ flex: 1 }}>
|
|
11
|
-
<ScrollView contentContainerStyle={{ minHeight: height, flexGrow: 1 }} keyboardShouldPersistTaps='handled'>
|
|
12
|
-
<View style={[styles.pagina, { backgroundColor: Theme.backgroundColor }]}>
|
|
13
|
-
{children}
|
|
14
|
-
</View>
|
|
15
|
-
</ScrollView>
|
|
16
|
-
</KeyboardAvoidingView>
|
|
9
|
+
return (<TouchableWithoutFeedback>
|
|
10
|
+
<KeyboardAvoidingView behavior={'height'} style={{ flex: 1 }}>
|
|
11
|
+
<ScrollView contentContainerStyle={{ minHeight: height, flexGrow: 1 }} keyboardShouldPersistTaps='handled'>
|
|
12
|
+
<View style={[styles.pagina, { backgroundColor: Theme.backgroundColor }]}>
|
|
13
|
+
{children}
|
|
14
|
+
</View>
|
|
15
|
+
</ScrollView>
|
|
16
|
+
</KeyboardAvoidingView>
|
|
17
17
|
</TouchableWithoutFeedback>);
|
|
18
18
|
});
|
|
19
19
|
const styles = StyleSheet.create({
|
|
@@ -2,8 +2,8 @@ import { LinearGradient } from "expo-linear-gradient";
|
|
|
2
2
|
import { Text, StyleSheet } from "react-native";
|
|
3
3
|
import { memo } from "react";
|
|
4
4
|
import colors from '../../constants';
|
|
5
|
-
export default memo(({ text, color = 'default' }) => (<LinearGradient style={styles.container} colors={[colors.perfil[color].light, colors.perfil[color].dark]} start={{ x: 0, y: 0 }} end={{ x: 0, y: 1 }}>
|
|
6
|
-
<Text style={styles.text}>{text}</Text>
|
|
5
|
+
export default memo(({ text, color = 'default' }) => (<LinearGradient style={styles.container} colors={[colors.perfil[color].light, colors.perfil[color].dark]} start={{ x: 0, y: 0 }} end={{ x: 0, y: 1 }}>
|
|
6
|
+
<Text style={styles.text}>{text}</Text>
|
|
7
7
|
</LinearGradient>));
|
|
8
8
|
const styles = StyleSheet.create({
|
|
9
9
|
container: {
|
|
@@ -60,27 +60,27 @@ export default memo(({ placeholder = '', buttonSend = true, handleSubmit, messag
|
|
|
60
60
|
});
|
|
61
61
|
const borderColor = isFocused ? Theme.focus : errorMessage ? Theme.borderColorError : Theme.borderColor5;
|
|
62
62
|
const backgroundColor = errorMessage ? Theme.backgroundColorError : Theme.backgroundColor2;
|
|
63
|
-
return (<View style={{ gap: 10 }}>
|
|
64
|
-
<View onTouchEnd={(e) => e.stopPropagation()} style={[styles.container, { borderColor: borderColor, backgroundColor: backgroundColor }]}>
|
|
65
|
-
<Pressable style={styles.pressable} onPress={() => { inputRef?.current?.focus?.(); }}>
|
|
66
|
-
|
|
67
|
-
<Animated.Text style={[styles.animatedText, { color: errorMessage ? Theme.borderColorError : Theme.borderColor }, animatedStyle]}>
|
|
68
|
-
{placeholder}
|
|
69
|
-
</Animated.Text>
|
|
70
|
-
|
|
71
|
-
<TextInput style={[styles.textInput, { color: Theme.text }]} autoCapitalize='none' autoCorrect={false} {...props} ref={inputRef} onChangeText={_onChangeText} onFocus={_onFocus} onBlur={_onBlur} onSubmitEditing={onClickSubmit}/>
|
|
72
|
-
</Pressable>
|
|
73
|
-
|
|
74
|
-
{buttonSend && (!isLoading ? (<Pressable style={{ paddingHorizontal: 10 }} onPress={onClickSubmit} onTouchStart={onClickSubmit}>
|
|
75
|
-
<View style={[styles.viewImage, { borderColor: Theme.borderColor }]}>
|
|
76
|
-
<Image style={styles.image} tintColor={Theme.borderColor} source={require('../../../../../assets/images/flecha-hacia-abajo.png')}/>
|
|
77
|
-
</View>
|
|
78
|
-
</Pressable>) : (<View style={{ paddingHorizontal: 10 }}>
|
|
79
|
-
<ActivityIndicator size='small' style={{ margin: 'auto' }} color={Theme.borderColor}/>
|
|
80
|
-
</View>))}
|
|
81
|
-
</View>
|
|
82
|
-
|
|
83
|
-
{errorMessage && <Text style={[styles.textError, { color: Theme.borderColorError }, styleMessageError]}>{errorMessage}</Text>}
|
|
63
|
+
return (<View style={{ gap: 10 }}>
|
|
64
|
+
<View onTouchEnd={(e) => e.stopPropagation()} style={[styles.container, { borderColor: borderColor, backgroundColor: backgroundColor }]}>
|
|
65
|
+
<Pressable style={styles.pressable} onPress={() => { inputRef?.current?.focus?.(); }}>
|
|
66
|
+
|
|
67
|
+
<Animated.Text style={[styles.animatedText, { color: errorMessage ? Theme.borderColorError : Theme.borderColor }, animatedStyle]}>
|
|
68
|
+
{placeholder}
|
|
69
|
+
</Animated.Text>
|
|
70
|
+
|
|
71
|
+
<TextInput style={[styles.textInput, { color: Theme.text }]} autoCapitalize='none' autoCorrect={false} {...props} ref={inputRef} onChangeText={_onChangeText} onFocus={_onFocus} onBlur={_onBlur} onSubmitEditing={onClickSubmit}/>
|
|
72
|
+
</Pressable>
|
|
73
|
+
|
|
74
|
+
{buttonSend && (!isLoading ? (<Pressable style={{ paddingHorizontal: 10 }} onPress={onClickSubmit} onTouchStart={onClickSubmit}>
|
|
75
|
+
<View style={[styles.viewImage, { borderColor: Theme.borderColor }]}>
|
|
76
|
+
<Image style={styles.image} tintColor={Theme.borderColor} source={require('../../../../../assets/images/flecha-hacia-abajo.png')}/>
|
|
77
|
+
</View>
|
|
78
|
+
</Pressable>) : (<View style={{ paddingHorizontal: 10 }}>
|
|
79
|
+
<ActivityIndicator size='small' style={{ margin: 'auto' }} color={Theme.borderColor}/>
|
|
80
|
+
</View>))}
|
|
81
|
+
</View>
|
|
82
|
+
|
|
83
|
+
{errorMessage && <Text style={[styles.textError, { color: Theme.borderColorError }, styleMessageError]}>{errorMessage}</Text>}
|
|
84
84
|
</View>);
|
|
85
85
|
});
|
|
86
86
|
const styles = StyleSheet.create({
|
|
@@ -8,22 +8,22 @@ const LogIn = memo(({ title, subtitle, iconPage, bottomElements, }) => {
|
|
|
8
8
|
const { height } = useWindowDimensions();
|
|
9
9
|
const { colorScheme } = useApp();
|
|
10
10
|
const Theme = colors.theme[colorScheme];
|
|
11
|
-
return (<Container>
|
|
11
|
+
return (<Container>
|
|
12
12
|
{iconPage &&
|
|
13
|
-
<View style={{ marginTop: height * 0.18 }}>
|
|
14
|
-
{iconPage}
|
|
15
|
-
</View>}
|
|
16
|
-
|
|
17
|
-
<View style={styles.viewText}>
|
|
18
|
-
<Text style={[styles.title, { color: Theme.text }]}>{title}</Text>
|
|
19
|
-
{subtitle && <Text style={[styles.subtitle, { color: Theme.text2 }]}>{subtitle}</Text>}
|
|
20
|
-
</View>
|
|
21
|
-
|
|
13
|
+
<View style={{ marginTop: height * 0.18 }}>
|
|
14
|
+
{iconPage}
|
|
15
|
+
</View>}
|
|
16
|
+
|
|
17
|
+
<View style={styles.viewText}>
|
|
18
|
+
<Text style={[styles.title, { color: Theme.text }]}>{title}</Text>
|
|
19
|
+
{subtitle && <Text style={[styles.subtitle, { color: Theme.text2 }]}>{subtitle}</Text>}
|
|
20
|
+
</View>
|
|
21
|
+
|
|
22
22
|
{bottomElements &&
|
|
23
|
-
<View style={styles.viewBottom}>
|
|
24
|
-
{bottomElements}
|
|
25
|
-
</View>}
|
|
26
|
-
|
|
23
|
+
<View style={styles.viewBottom}>
|
|
24
|
+
{bottomElements}
|
|
25
|
+
</View>}
|
|
26
|
+
|
|
27
27
|
</Container>);
|
|
28
28
|
});
|
|
29
29
|
LogIn.Input = Input;
|
|
@@ -3,9 +3,9 @@ import { KeyboardAvoidingView, ScrollView } from 'react-native';
|
|
|
3
3
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
4
|
export default memo(({ children, style }) => {
|
|
5
5
|
const { bottom, top } = useSafeAreaInsets();
|
|
6
|
-
return (<KeyboardAvoidingView style={{ flex: 1 }} behavior={'height'} keyboardVerticalOffset={bottom + top}>
|
|
7
|
-
<ScrollView contentContainerStyle={[{ flexGrow: 1 }, style]}>
|
|
8
|
-
{children}
|
|
9
|
-
</ScrollView>
|
|
6
|
+
return (<KeyboardAvoidingView style={{ flex: 1 }} behavior={'height'} keyboardVerticalOffset={bottom + top}>
|
|
7
|
+
<ScrollView contentContainerStyle={[{ flexGrow: 1 }, style]}>
|
|
8
|
+
{children}
|
|
9
|
+
</ScrollView>
|
|
10
10
|
</KeyboardAvoidingView>);
|
|
11
11
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
2
|
import { ScrollView } from 'react-native';
|
|
3
3
|
export default memo(({ children, style }) => {
|
|
4
|
-
return (<ScrollView style={{ flex: 1 }} automaticallyAdjustKeyboardInsets={true} contentContainerStyle={style}>
|
|
5
|
-
{children}
|
|
4
|
+
return (<ScrollView style={{ flex: 1 }} automaticallyAdjustKeyboardInsets={true} contentContainerStyle={style}>
|
|
5
|
+
{children}
|
|
6
6
|
</ScrollView>);
|
|
7
7
|
});
|
|
@@ -5,8 +5,8 @@ import Page from '../Page';
|
|
|
5
5
|
Crea una Página con ScrollView.
|
|
6
6
|
*/
|
|
7
7
|
const PageComponent = memo(({ children, style }) => {
|
|
8
|
-
return (<Page style={style}>
|
|
9
|
-
{children}
|
|
8
|
+
return (<Page style={style}>
|
|
9
|
+
{children}
|
|
10
10
|
</Page>);
|
|
11
11
|
});
|
|
12
12
|
PageComponent.WithIcon = WithIcon;
|
|
@@ -7,17 +7,17 @@ import Subtitle from '../Subtitle';
|
|
|
7
7
|
const WithIcon = memo(({ children, renderIcon, style, title, subtitle, renderSubtitle }) => {
|
|
8
8
|
const { colorScheme } = useApp();
|
|
9
9
|
const Theme = colors[colorScheme];
|
|
10
|
-
return (<PageWrapper style={style}>
|
|
10
|
+
return (<PageWrapper style={style}>
|
|
11
11
|
{renderIcon &&
|
|
12
|
-
<View style={styles.viewIcon}>
|
|
13
|
-
{renderIcon()}
|
|
14
|
-
</View>}
|
|
15
|
-
{(title || renderSubtitle) && (<View style={styles.viewTitle}>
|
|
16
|
-
{title && <Text style={[styles.title, { color: Theme.text }]}>{title}</Text>}
|
|
17
|
-
{subtitle && <Text style={[styles.subtitle, { color: Theme.text2 }]}>{subtitle}</Text>}
|
|
18
|
-
{renderSubtitle?.()}
|
|
19
|
-
</View>)}
|
|
20
|
-
{children}
|
|
12
|
+
<View style={styles.viewIcon}>
|
|
13
|
+
{renderIcon()}
|
|
14
|
+
</View>}
|
|
15
|
+
{(title || renderSubtitle) && (<View style={styles.viewTitle}>
|
|
16
|
+
{title && <Text style={[styles.title, { color: Theme.text }]}>{title}</Text>}
|
|
17
|
+
{subtitle && <Text style={[styles.subtitle, { color: Theme.text2 }]}>{subtitle}</Text>}
|
|
18
|
+
{renderSubtitle?.()}
|
|
19
|
+
</View>)}
|
|
20
|
+
{children}
|
|
21
21
|
</PageWrapper>);
|
|
22
22
|
});
|
|
23
23
|
WithIcon.Subtitle = Subtitle;
|
|
@@ -7,13 +7,13 @@ export default memo(({ children, selected, onSelectionChange, adjustRowInsets })
|
|
|
7
7
|
pickerStyle('inline'),
|
|
8
8
|
...(adjustRowInsets ? [listRowInsets({ top: 20, bottom: 20, leading: 25, trailing: 20 })] : []),
|
|
9
9
|
], [adjustRowInsets]);
|
|
10
|
-
return (<Host style={{ flex: 1 }}>
|
|
11
|
-
<List modifiers={[listStyle('inset')]} disablePaddingTop>
|
|
12
|
-
<Section>
|
|
13
|
-
<Picker selection={selected} onSelectionChange={onSelectionChange} modifiers={_modifiersPicker}>
|
|
14
|
-
{children}
|
|
15
|
-
</Picker>
|
|
16
|
-
</Section>
|
|
17
|
-
</List>
|
|
10
|
+
return (<Host style={{ flex: 1 }}>
|
|
11
|
+
<List modifiers={[listStyle('inset')]} disablePaddingTop>
|
|
12
|
+
<Section>
|
|
13
|
+
<Picker selection={selected} onSelectionChange={onSelectionChange} modifiers={_modifiersPicker}>
|
|
14
|
+
{children}
|
|
15
|
+
</Picker>
|
|
16
|
+
</Section>
|
|
17
|
+
</List>
|
|
18
18
|
</Host>);
|
|
19
19
|
});
|
|
@@ -4,11 +4,11 @@ import Table from "../../../../../libs/table";
|
|
|
4
4
|
import { Provider } from '../../context/page';
|
|
5
5
|
export default memo(({ children, selected, onSelectionChange }) => {
|
|
6
6
|
const value = useMemo(() => ({ selected, onSelectionChange }), [selected]);
|
|
7
|
-
return (<Provider value={value}>
|
|
8
|
-
<ScrollView>
|
|
9
|
-
<Table>
|
|
10
|
-
{children}
|
|
11
|
-
</Table>
|
|
12
|
-
</ScrollView>
|
|
7
|
+
return (<Provider value={value}>
|
|
8
|
+
<ScrollView>
|
|
9
|
+
<Table>
|
|
10
|
+
{children}
|
|
11
|
+
</Table>
|
|
12
|
+
</ScrollView>
|
|
13
13
|
</Provider>);
|
|
14
14
|
});
|
|
@@ -7,10 +7,10 @@ import { usePage } from '../../context/page';
|
|
|
7
7
|
export default memo(({ itemKey, title, ionIconName, icon }) => {
|
|
8
8
|
const { colorScheme } = useApp();
|
|
9
9
|
const { selected, onSelectionChange } = usePage();
|
|
10
|
-
return (<Table.Option id={itemKey} onPress={() => onSelectionChange?.(itemKey)} colorScheme={colorScheme} childrenLeft={<>
|
|
11
|
-
{icon ?? (ionIconName && <Ionicons name={ionIconName} size={24} color={Colors.especiales.azul}/>)}
|
|
12
|
-
{title && (<Table.Option.Components.TextView>
|
|
13
|
-
<Table.Option.Components.Text text={title}/>
|
|
14
|
-
</Table.Option.Components.TextView>)}
|
|
10
|
+
return (<Table.Option id={itemKey} onPress={() => onSelectionChange?.(itemKey)} colorScheme={colorScheme} childrenLeft={<>
|
|
11
|
+
{icon ?? (ionIconName && <Ionicons name={ionIconName} size={24} color={Colors.especiales.azul}/>)}
|
|
12
|
+
{title && (<Table.Option.Components.TextView>
|
|
13
|
+
<Table.Option.Components.Text text={title}/>
|
|
14
|
+
</Table.Option.Components.TextView>)}
|
|
15
15
|
</>} childrenRight={itemKey !== selected ? undefined : (<Ionicons name='checkmark' size={24} color={Colors.especiales.azul}/>)}/>);
|
|
16
16
|
});
|
|
@@ -6,17 +6,17 @@ export default memo(({ children, onChangeSearchText, onSelectionChange, placehol
|
|
|
6
6
|
await onSelectionChange?.(selection);
|
|
7
7
|
router.back();
|
|
8
8
|
};
|
|
9
|
-
return (<>
|
|
10
|
-
<Stack.Toolbar placement="right">
|
|
11
|
-
<Stack.Toolbar.Button onPress={() => router.back()}>
|
|
12
|
-
<Stack.Toolbar.Icon sf="xmark"/>
|
|
13
|
-
</Stack.Toolbar.Button>
|
|
14
|
-
</Stack.Toolbar>
|
|
15
|
-
|
|
16
|
-
<Stack.SearchBar placeholder={placeholderSearchBar} onChangeText={(e) => onChangeSearchText?.(e.nativeEvent.text)}/>
|
|
17
|
-
|
|
18
|
-
<Content onSelectionChange={_onSelectionChange} {...props}>
|
|
19
|
-
{children}
|
|
20
|
-
</Content>
|
|
9
|
+
return (<>
|
|
10
|
+
<Stack.Toolbar placement="right">
|
|
11
|
+
<Stack.Toolbar.Button onPress={() => router.back()}>
|
|
12
|
+
<Stack.Toolbar.Icon sf="xmark"/>
|
|
13
|
+
</Stack.Toolbar.Button>
|
|
14
|
+
</Stack.Toolbar>
|
|
15
|
+
|
|
16
|
+
<Stack.SearchBar placeholder={placeholderSearchBar} onChangeText={(e) => onChangeSearchText?.(e.nativeEvent.text)}/>
|
|
17
|
+
|
|
18
|
+
<Content onSelectionChange={_onSelectionChange} {...props}>
|
|
19
|
+
{children}
|
|
20
|
+
</Content>
|
|
21
21
|
</>);
|
|
22
22
|
});
|