You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 'square' is not an original Button prop, but a custom prop that can
74
+
// be used to create different variations of buttons in your app
75
+
if (props.square) {
76
+
return {
77
+
borderRadius: 0
78
+
};
79
+
}
80
+
});
81
+
```
82
+
83
+
### Step 3
84
+
Use it all together.
85
+
Your configurations will be applied on uilib components so you can use them easily with [modifiers](https://github.com/wix/react-native-ui-lib/wiki/MODIFIERS).
86
+
87
+
```
88
+
// MyScreen.js
89
+
90
+
import React, {Component} from 'react';
91
+
import {View, Text, Card, Button} from 'react-native-ui-lib';
92
+
93
+
class MyScreen extends Component {
94
+
render() {
95
+
return (
96
+
<View flex padding-page>
97
+
<Text heading marginB-s4>My Screen</Text>
98
+
<Card height={100} center padding-card marginB-s4>
99
+
<Text body>This is an example card </Text>
100
+
</Card>
101
+
102
+
<Button label="Button" body bg-primaryColor square></Button>
0 commit comments