native-pytech 1.0.87 → 1.0.88
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,10 +1,12 @@
|
|
|
1
1
|
import { Host, Column, Row } from '@expo/ui/jetpack-compose';
|
|
2
|
-
import React, { memo } from 'react';
|
|
2
|
+
import React, { Fragment, memo } from 'react';
|
|
3
3
|
export default memo(({ colorRows, renderItem, ...pageProps }) => {
|
|
4
4
|
return (<Host style={{ flex: 1 }}>
|
|
5
5
|
<Column verticalArrangement={{ spacedBy: 16 }}>
|
|
6
6
|
{colorRows.map((row, index) => (<Row key={index} verticalArrangement="spaceEvenly">
|
|
7
|
-
{row.map((color, indexColor) =>
|
|
7
|
+
{row.map((color, indexColor) => renderItem == null ? null : (<Fragment key={indexColor}>
|
|
8
|
+
{React.createElement(renderItem, { color, size: 55, ...pageProps })}
|
|
9
|
+
</Fragment>))}
|
|
8
10
|
</Row>))}
|
|
9
11
|
</Column>
|
|
10
12
|
</Host>);
|