native-pytech 1.0.229 → 1.0.231
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.
|
@@ -14,7 +14,8 @@ const addProps = (element, additionalStyles = [], extraProps = {}) => {
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
const isValidMail = (mail) => {
|
|
17
|
-
|
|
17
|
+
const at = mail.indexOf('@');
|
|
18
|
+
return at !== -1 && mail.lastIndexOf('.') > at && /\.[a-zA-Z]+$/.test(mail);
|
|
18
19
|
};
|
|
19
20
|
const applyOpacity = (color, opacity) => {
|
|
20
21
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Host, List, Section } from '@expo/ui/swift-ui';
|
|
2
|
-
export default ({ children }) => (<Host style={{ flex: 1 }}>
|
|
3
|
-
<List>
|
|
4
|
-
<Section>
|
|
5
|
-
{children}
|
|
6
|
-
</Section>
|
|
7
|
-
</List>
|
|
2
|
+
export default ({ children }) => (<Host style={{ flex: 1 }}>
|
|
3
|
+
<List>
|
|
4
|
+
<Section>
|
|
5
|
+
{children}
|
|
6
|
+
</Section>
|
|
7
|
+
</List>
|
|
8
8
|
</Host>);
|
|
@@ -62,12 +62,12 @@ export default memo(({ children, saveEnabled, onSave }) => {
|
|
|
62
62
|
next(itemKey);
|
|
63
63
|
};
|
|
64
64
|
const value = useMemo(() => ({ store, onSubmit, registerItem }), []);
|
|
65
|
-
return (<>
|
|
66
|
-
<Header saveEnabled={_saveEnabled && (saveEnabled ?? true)} onPressSave={onPressSave}/>
|
|
67
|
-
<Screen>
|
|
68
|
-
<Provider value={value}>
|
|
69
|
-
{children}
|
|
70
|
-
</Provider>
|
|
71
|
-
</Screen>
|
|
65
|
+
return (<>
|
|
66
|
+
<Header saveEnabled={_saveEnabled && (saveEnabled ?? true)} onPressSave={onPressSave}/>
|
|
67
|
+
<Screen>
|
|
68
|
+
<Provider value={value}>
|
|
69
|
+
{children}
|
|
70
|
+
</Provider>
|
|
71
|
+
</Screen>
|
|
72
72
|
</>);
|
|
73
73
|
});
|
|
@@ -21,12 +21,12 @@ export const colors = {
|
|
|
21
21
|
default: {
|
|
22
22
|
light: {
|
|
23
23
|
background: '#FFFFFF', // secondarySystemGroupedBackground
|
|
24
|
-
background_pressed: 'hsl(0, 0%, 85%)',
|
|
24
|
+
background_pressed: 'hsl(0, 0%, 85%)', // secondarySystemGroupedBackground
|
|
25
25
|
border: 'hsl(240, 2%, 91%)'
|
|
26
26
|
},
|
|
27
27
|
dark: {
|
|
28
|
-
background: '#1C1C1E', //
|
|
29
|
-
background_pressed: 'hsl(240, 2.20%, 22.60%)',
|
|
28
|
+
background: '#1C1C1E', // secondarySystemGroupedBackground
|
|
29
|
+
background_pressed: 'hsl(240, 2.20%, 22.60%)', // tertiarySystemGroupedBackground
|
|
30
30
|
border: 'hsl(240, 3%, 22.5%)'
|
|
31
31
|
}
|
|
32
32
|
},
|