@applicaster/zapp-react-native-ui-components 16.0.0-rc.36 → 16.0.0-rc.37
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.
|
@@ -23,6 +23,12 @@ type ModalComponentProps = {
|
|
|
23
23
|
maxHeight?: number;
|
|
24
24
|
dismiss: () => void;
|
|
25
25
|
headerComponent?: React.ComponentType;
|
|
26
|
+
|
|
27
|
+
scrollViewContent?: {
|
|
28
|
+
renderItem: (item: any, index: number) => React.ReactNode;
|
|
29
|
+
items: any[];
|
|
30
|
+
} | null;
|
|
31
|
+
|
|
26
32
|
buttonComponent?: React.ComponentType;
|
|
27
33
|
iconProps?: ItemIconProps | ((theme: PluginConfiguration) => ItemIconProps);
|
|
28
34
|
itemProps?:
|
|
@@ -50,6 +56,9 @@ export function BottomSheetModalContent(props: ModalComponentProps) {
|
|
|
50
56
|
summary,
|
|
51
57
|
title,
|
|
52
58
|
headerComponent: ModalHeader = DefaultModalHeader,
|
|
59
|
+
|
|
60
|
+
scrollViewContent = null,
|
|
61
|
+
|
|
53
62
|
buttonComponent: ButtonComponent = Button,
|
|
54
63
|
getSelectedItemIcon = ({
|
|
55
64
|
modal_bottom_sheet_item_selected_icon,
|
|
@@ -109,24 +118,31 @@ export function BottomSheetModalContent(props: ModalComponentProps) {
|
|
|
109
118
|
paddingBottom: paddingBottom + bottomInset,
|
|
110
119
|
}}
|
|
111
120
|
>
|
|
112
|
-
{
|
|
113
|
-
item
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
{scrollViewContent
|
|
122
|
+
? scrollViewContent.items.map((item, index) =>
|
|
123
|
+
scrollViewContent.renderItem(item, index)
|
|
124
|
+
)
|
|
125
|
+
: null}
|
|
126
|
+
|
|
127
|
+
{!scrollViewContent &&
|
|
128
|
+
items.map((item, index) =>
|
|
129
|
+
item ? (
|
|
130
|
+
<ButtonComponent
|
|
131
|
+
key={index}
|
|
132
|
+
configuration={theme}
|
|
133
|
+
selectedItem={current_selection}
|
|
134
|
+
item={item}
|
|
135
|
+
onPress={handlePress}
|
|
136
|
+
label={theme[item?.label] ?? item?.label}
|
|
137
|
+
iconBaseProps={iconBaseProps}
|
|
138
|
+
itemBaseProps={itemBaseProps}
|
|
139
|
+
labelBaseProps={labelBaseProps}
|
|
140
|
+
selectedItemIcon={getSelectedItemIcon(theme)}
|
|
141
|
+
defaultItemIcon={getDefaultItemIcon(theme)}
|
|
142
|
+
iconPlacement={iconPlacement}
|
|
143
|
+
/>
|
|
144
|
+
) : null
|
|
145
|
+
)}
|
|
130
146
|
</ScrollView>
|
|
131
147
|
</View>
|
|
132
148
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "16.0.0-rc.
|
|
3
|
+
"version": "16.0.0-rc.37",
|
|
4
4
|
"description": "Applicaster Zapp React Native ui components for the Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "16.0.0-rc.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "16.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "16.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "16.0.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "16.0.0-rc.37",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "16.0.0-rc.37",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "16.0.0-rc.37",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "16.0.0-rc.37",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"promise": "^8.3.0",
|
|
37
37
|
"url": "^0.11.0",
|