react-native-boxes 1.4.61 → 1.4.62

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.61",
3
+ "version": "1.4.62",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,10 +1,16 @@
1
1
  import { StatusBar } from 'expo-status-bar';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
- import { DemoScreen, Theme, ThemeContext } from './react-native-boxes'
3
+ import { DemoScreen, Theme, ThemeContext } from 'react-native-boxes'
4
4
  import { SafeAreaProvider } from 'react-native-safe-area-context';
5
- 2
5
+
6
6
  export default function App() {
7
7
  const theme = new Theme()
8
+
9
+ loadAsync({
10
+ 'Regular': require('./assets/fonts/Regular.ttf'),
11
+ 'Bold': require('./assets/fonts/Bold.ttf'),
12
+ 'Styled': require('./assets/fonts/Styled.ttf'),
13
+ })
8
14
  return (
9
15
  <ThemeContext.Provider value={theme}>
10
16
  <SafeAreaProvider>
@@ -22,3 +28,7 @@ const styles = StyleSheet.create({
22
28
  justifyContent: 'center',
23
29
  },
24
30
  });
31
+ function loadAsync(arg0: { Regular: any; Bold: any; Styled: any; }) {
32
+ throw new Error('Function not implemented.');
33
+ }
34
+
Binary file
@@ -16,6 +16,8 @@
16
16
  "react": "18.2.0",
17
17
  "react-dom": "18.2.0",
18
18
  "react-native": "0.73.6",
19
+ "react-native-boxes": "^1.4.61",
20
+ "react-native-gesture-handler": "^2.22.1",
19
21
  "react-native-safe-area-context": "^4.9.0",
20
22
  "react-native-web": "~0.19.6"
21
23
  },
package/src/Button.tsx CHANGED
@@ -136,6 +136,7 @@ export function ButtonView(props: ButtonViewProps) {
136
136
  backgroundColor: 'transparent'
137
137
  }}>
138
138
 
139
+
139
140
  {
140
141
  BtnIcon && (
141
142
  <View style={{
@@ -151,6 +152,7 @@ export function ButtonView(props: ButtonViewProps) {
151
152
  {
152
153
  (props.text || props.children) && (
153
154
  <TextView style={[{
155
+ width: '100%',
154
156
  opacity: isPressed ? .7 : 1,
155
157
  fontWeight: "500",
156
158
  justifyContent: 'center',