native-pytech 1.0.49 → 1.0.51
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.
|
@@ -51,34 +51,34 @@ function Component({ data = [], renderItem, onSave, }) {
|
|
|
51
51
|
isUniqueItem: (data?.length ?? 0) === 1,
|
|
52
52
|
textFieldsRefs
|
|
53
53
|
}), []);
|
|
54
|
-
return (<>
|
|
55
|
-
<Stack.Toolbar placement="left">
|
|
56
|
-
<Stack.Toolbar.Button onPress={() => router.back()}>
|
|
57
|
-
<Stack.Toolbar.Icon sf="xmark"/>
|
|
58
|
-
</Stack.Toolbar.Button>
|
|
59
|
-
</Stack.Toolbar>
|
|
60
|
-
|
|
61
|
-
<Stack.Toolbar placement="right">
|
|
62
|
-
<Stack.Toolbar.Button disabled={!saveEnabled} variant="done" onPress={onPressSave}>
|
|
63
|
-
<Stack.Toolbar.Icon sf="checkmark"/>
|
|
64
|
-
</Stack.Toolbar.Button>
|
|
65
|
-
</Stack.Toolbar>
|
|
66
|
-
|
|
67
|
-
<Host style={{ flex: 1 }}>
|
|
68
|
-
<List>
|
|
69
|
-
<Section>
|
|
70
|
-
<Provider value={value}>
|
|
54
|
+
return (<>
|
|
55
|
+
<Stack.Toolbar placement="left">
|
|
56
|
+
<Stack.Toolbar.Button onPress={() => router.back()}>
|
|
57
|
+
<Stack.Toolbar.Icon sf="xmark"/>
|
|
58
|
+
</Stack.Toolbar.Button>
|
|
59
|
+
</Stack.Toolbar>
|
|
60
|
+
|
|
61
|
+
<Stack.Toolbar placement="right">
|
|
62
|
+
<Stack.Toolbar.Button disabled={!saveEnabled} variant="done" onPress={onPressSave}>
|
|
63
|
+
<Stack.Toolbar.Icon sf="checkmark"/>
|
|
64
|
+
</Stack.Toolbar.Button>
|
|
65
|
+
</Stack.Toolbar>
|
|
66
|
+
|
|
67
|
+
<Host style={{ flex: 1 }}>
|
|
68
|
+
<List>
|
|
69
|
+
<Section>
|
|
70
|
+
<Provider value={value}>
|
|
71
71
|
{data.map((item, index) => {
|
|
72
72
|
const nextIndex = index + 1;
|
|
73
73
|
const value = { index, nextIndex: nextIndex < data.length ? nextIndex : undefined };
|
|
74
|
-
return (<ItemProvider key={index} value={value}>
|
|
75
|
-
{renderItem?.(item)}
|
|
74
|
+
return (<ItemProvider key={index} value={value}>
|
|
75
|
+
{renderItem?.(item)}
|
|
76
76
|
</ItemProvider>);
|
|
77
|
-
})}
|
|
78
|
-
</Provider>
|
|
79
|
-
</Section>
|
|
80
|
-
</List>
|
|
81
|
-
</Host>
|
|
77
|
+
})}
|
|
78
|
+
</Provider>
|
|
79
|
+
</Section>
|
|
80
|
+
</List>
|
|
81
|
+
</Host>
|
|
82
82
|
</>);
|
|
83
83
|
}
|
|
84
84
|
export default memo(Component);
|
|
@@ -4,7 +4,7 @@ import { memo } from 'react';
|
|
|
4
4
|
import Screen from '../Screen';
|
|
5
5
|
import { handleSubmitLogInPerfil } from './utils';
|
|
6
6
|
export default memo(({ routeOnSuccess, onSuccess }) => {
|
|
7
|
-
const { mail, first_name,
|
|
7
|
+
const { mail, first_name, abbreviation, color } = useLocalSearchParams();
|
|
8
8
|
const router = useRouter();
|
|
9
9
|
const handleSubmit = async ({ value }) => {
|
|
10
10
|
const { succeded, message } = await handleSubmitLogInPerfil({ mail, password: value });
|
|
@@ -15,5 +15,5 @@ export default memo(({ routeOnSuccess, onSuccess }) => {
|
|
|
15
15
|
}
|
|
16
16
|
return { succeded, message };
|
|
17
17
|
};
|
|
18
|
-
return (<Screen iconPage={<Screen.Gradient text={`${
|
|
18
|
+
return (<Screen iconPage={<Screen.Gradient text={`${abbreviation}`} color={color}/>} title={`¡Hola${first_name ? ` ${first_name}` : ''}!`} bottomElements={<Screen.Input placeholder='Contraseña' keyboardType='default' secureTextEntry={true} autoComplete='password' handleSubmit={handleSubmit} autoFocus={Platform.OS === 'web'}/>}/>);
|
|
19
19
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-pytech",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"description": "Libreria de React Native Pytech",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build": "node scripts/build.js",
|
|
11
11
|
"typecheck": "tsc --noEmit",
|
|
12
12
|
"prepublishOnly": "npm run build",
|
|
13
|
-
"release": "npm version patch && npm publish"
|
|
13
|
+
"release": "dev git && npm version patch && npm publish"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|