@applicaster/zapp-react-native-ui-components 13.0.0-rc.95 → 13.0.0-rc.96
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.
|
@@ -64,9 +64,11 @@ export function BottomSheetModalContent(props: ModalComponentProps) {
|
|
|
64
64
|
const [headerHeight, setHeaderHeight] = useState(0);
|
|
65
65
|
const route = useRef(currentRoute);
|
|
66
66
|
const theme = useTheme<BaseThemePropertiesMobile>();
|
|
67
|
+
const paddingTop = Number(theme.modal_bottom_sheet_padding_top);
|
|
68
|
+
const paddingBottom = Number(theme.modal_bottom_sheet_padding_bottom);
|
|
67
69
|
|
|
68
70
|
const maxContentHeight = maxHeight
|
|
69
|
-
? maxHeight - headerHeight -
|
|
71
|
+
? maxHeight - headerHeight - paddingTop
|
|
70
72
|
: undefined;
|
|
71
73
|
|
|
72
74
|
const onHeaderLayout = useCallback((event: LayoutChangeEvent) => {
|
|
@@ -102,7 +104,8 @@ export function BottomSheetModalContent(props: ModalComponentProps) {
|
|
|
102
104
|
return (
|
|
103
105
|
<View
|
|
104
106
|
style={{
|
|
105
|
-
|
|
107
|
+
maxWidth: props.width,
|
|
108
|
+
paddingTop,
|
|
106
109
|
}}
|
|
107
110
|
>
|
|
108
111
|
<ModalHeader
|
|
@@ -117,8 +120,8 @@ export function BottomSheetModalContent(props: ModalComponentProps) {
|
|
|
117
120
|
bounces={false}
|
|
118
121
|
style={{ maxHeight: maxContentHeight }}
|
|
119
122
|
contentContainerStyle={{
|
|
120
|
-
paddingBottom
|
|
121
|
-
paddingTop
|
|
123
|
+
paddingBottom,
|
|
124
|
+
paddingTop,
|
|
122
125
|
}}
|
|
123
126
|
>
|
|
124
127
|
{items.map((item, index) => (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "13.0.0-rc.
|
|
3
|
+
"version": "13.0.0-rc.96",
|
|
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",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"redux-mock-store": "^1.5.3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@applicaster/applicaster-types": "13.0.0-rc.
|
|
35
|
-
"@applicaster/zapp-react-native-bridge": "13.0.0-rc.
|
|
36
|
-
"@applicaster/zapp-react-native-redux": "13.0.0-rc.
|
|
37
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-rc.
|
|
34
|
+
"@applicaster/applicaster-types": "13.0.0-rc.96",
|
|
35
|
+
"@applicaster/zapp-react-native-bridge": "13.0.0-rc.96",
|
|
36
|
+
"@applicaster/zapp-react-native-redux": "13.0.0-rc.96",
|
|
37
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-rc.96",
|
|
38
38
|
"promise": "^8.3.0",
|
|
39
39
|
"react-router-native": "^5.1.2",
|
|
40
40
|
"url": "^0.11.0",
|