react-native-boxes 1.4.15 → 1.4.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.15",
3
+ "version": "1.4.17",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Button.tsx CHANGED
@@ -79,7 +79,7 @@ export function TransparentButton(props: TextProps & TouchableHighlightProps
79
79
  //@ts-ignore
80
80
  fontSize: tstyle.fontSize,
81
81
  //@ts-ignore
82
- fontFamily: tstyle.fontFamily,
82
+ fontFamily: tstyle.fontFamily || theme.fonts.Bold,
83
83
  //@ts-ignore
84
84
  color: isPressed ? (props.underlayColor || theme.colors.accent) : tstyle.color || theme.colors.text,
85
85
  }}>
package/src/Message.tsx CHANGED
@@ -5,6 +5,7 @@ import { ThemeContext } from "./ThemeContext";
5
5
  import FontAwesome from '@expo/vector-icons/FontAwesome';
6
6
  import { Platform, Pressable, Text, ViewProps } from "react-native";
7
7
  import { TextView } from "./Text";
8
+ import { isDesktop } from "./utils";
8
9
 
9
10
 
10
11
 
@@ -40,6 +41,7 @@ export function AlertMessage(props:
40
41
  return (
41
42
  <HBox style={[{
42
43
  flex: 1,
44
+ minHeight: isDesktop() ? undefined : '10%',
43
45
  margin: theme.dimens.space.sm,
44
46
  backgroundColor: theme.colors[type] || color,
45
47
  alignItems: 'center',