@applicaster/zapp-react-native-ui-components 13.0.0-rc.116 → 13.0.0-rc.118

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,5 +1,5 @@
1
1
  import React, { useCallback, useEffect, useMemo, useRef } from "react";
2
- import { View, ScrollView, StyleSheet, Platform } from "react-native";
2
+ import { View, ScrollView, Platform } from "react-native";
3
3
  import { Button } from "./Button";
4
4
  import { ItemIconProps } from "./Button/ItemIcon";
5
5
  import { ItemProps } from "./Button/Item";
@@ -39,12 +39,6 @@ type ModalComponentProps = {
39
39
  iconPlacement?: "left" | "right";
40
40
  };
41
41
 
42
- const styles = StyleSheet.create({
43
- container: {
44
- maxHeight: "100%",
45
- },
46
- });
47
-
48
42
  export function BottomSheetModalContent(props: ModalComponentProps) {
49
43
  const {
50
44
  items,
@@ -96,12 +90,10 @@ export function BottomSheetModalContent(props: ModalComponentProps) {
96
90
 
97
91
  return (
98
92
  <View
99
- style={[
100
- styles.container,
101
- {
102
- paddingTop: paddingTop,
103
- },
104
- ]}
93
+ style={{
94
+ maxHeight: props.maxHeight,
95
+ paddingTop: paddingTop,
96
+ }}
105
97
  >
106
98
  <ModalHeader
107
99
  dismiss={dismiss}
@@ -112,7 +104,7 @@ export function BottomSheetModalContent(props: ModalComponentProps) {
112
104
  <ScrollView
113
105
  contentContainerStyle={{
114
106
  paddingBottom:
115
- Platform.OS === "ios" ? paddingBottom + bottomInset : paddingBottom,
107
+ paddingBottom + (Platform.OS === "ios" ? bottomInset : 0),
116
108
  }}
117
109
  >
118
110
  {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.116",
3
+ "version": "13.0.0-rc.118",
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.116",
35
- "@applicaster/zapp-react-native-bridge": "13.0.0-rc.116",
36
- "@applicaster/zapp-react-native-redux": "13.0.0-rc.116",
37
- "@applicaster/zapp-react-native-utils": "13.0.0-rc.116",
34
+ "@applicaster/applicaster-types": "13.0.0-rc.118",
35
+ "@applicaster/zapp-react-native-bridge": "13.0.0-rc.118",
36
+ "@applicaster/zapp-react-native-redux": "13.0.0-rc.118",
37
+ "@applicaster/zapp-react-native-utils": "13.0.0-rc.118",
38
38
  "promise": "^8.3.0",
39
39
  "react-router-native": "^5.1.2",
40
40
  "url": "^0.11.0",