native-pytech 1.0.194 → 1.0.197
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.
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Column, Row } from '@expo/ui/jetpack-compose';
|
|
3
3
|
import { fillMaxWidth } from '@expo/ui/jetpack-compose/modifiers';
|
|
4
4
|
import Item from '../Item';
|
|
5
5
|
export default memo(({ colorRows, ...pageProps }) => {
|
|
6
|
-
return (<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</Column>
|
|
12
|
-
</Host>);
|
|
6
|
+
return (<Column verticalArrangement={{ spacedBy: 2 }}>
|
|
7
|
+
{colorRows.map((row, index) => (<Row key={index} horizontalArrangement="spaceEvenly" verticalArrangement="center" modifiers={[fillMaxWidth()]}>
|
|
8
|
+
{row.map((color, indexColor) => (<Item key={color} color={color} size={55} {...pageProps}/>))}
|
|
9
|
+
</Row>))}
|
|
10
|
+
</Column>);
|
|
13
11
|
});
|
|
@@ -11,7 +11,7 @@ export default memo(({ onSelectColor, ...restProps }) => {
|
|
|
11
11
|
router.back();
|
|
12
12
|
}, [onSelectColor]);
|
|
13
13
|
return (<>
|
|
14
|
-
<Stack.
|
|
14
|
+
<Stack.Title>Color de fondo</Stack.Title>
|
|
15
15
|
<Content colorRows={colorRows} onSelectColor={_onSelectColor} {...restProps}/>
|
|
16
16
|
</>);
|
|
17
17
|
});
|
|
@@ -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
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-pytech",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.197",
|
|
4
4
|
"description": "Libreria de React Native Pytech",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -78,5 +78,8 @@
|
|
|
78
78
|
"./assets/images/*": {
|
|
79
79
|
"default": "./dist/libs/assets/images/*"
|
|
80
80
|
}
|
|
81
|
+
},
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"expo": "~56.0.12"
|
|
81
84
|
}
|
|
82
85
|
}
|