react-native-boxes 1.4.62 → 1.4.63

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Button.tsx +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.62",
3
+ "version": "1.4.63",
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
@@ -151,8 +151,10 @@ export function ButtonView(props: ButtonViewProps) {
151
151
 
152
152
  {
153
153
  (props.text || props.children) && (
154
+
154
155
  <TextView style={[{
155
156
  width: '100%',
157
+ textAlign: 'center',
156
158
  opacity: isPressed ? .7 : 1,
157
159
  fontWeight: "500",
158
160
  justifyContent: 'center',