react-native-boxes 1.4.60 → 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 +1 -1
- package/sample-app/App.tsx +12 -2
- package/sample-app/assets/fonts/Bold.ttf +0 -0
- package/sample-app/assets/fonts/Prod-Bold.ttf +0 -0
- package/sample-app/assets/fonts/Regular.ttf +0 -0
- package/sample-app/assets/fonts/Styled.ttf +0 -0
- package/sample-app/package.json +2 -0
- package/src/Bar.tsx +1 -1
- package/src/Button.tsx +2 -0
package/package.json
CHANGED
package/sample-app/App.tsx
CHANGED
|
@@ -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 '
|
|
3
|
+
import { DemoScreen, Theme, ThemeContext } from 'react-native-boxes'
|
|
4
4
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
5
|
-
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/sample-app/package.json
CHANGED
package/src/Bar.tsx
CHANGED
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',
|