Skip to content

Commit 4beb93f

Browse files
hetmanntalesdsp
andauthored
Dev (#69)
* DEV: extracted usage from component comments to COMPONENTS.md file * Fix for #51 * added npmignore file * DEV: refactored helpers, updates for Block, Button & Text, tests * DEV: fix Button flex issue on Android * DEV: color removed from Input due to Android bug * DEV: version 0.1.4 * Hotfix (#58) * Dev (#57) * DEV: extracted usage from component comments to COMPONENTS.md file * Fix for #51 * added npmignore file * DEV: refactored helpers, updates for Block, Button & Text, tests * DEV: fix Button flex issue on Android * DEV: color removed from Input due to Android bug * DEV: version 0.1.4 * Fix typings * update tests Co-authored-by: Hetmann W. Iohan <[email protected]> * DEV: added react-native to dependencies, version 0.1.5 * DEV: npmpublish updates * DEV: removed npmpublish.yml using github workflows Co-authored-by: Tales Pereira <[email protected]>
1 parent 8cc6917 commit 4beb93f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Usage:
3535
- disable flex
3636

3737
```html
38-
<Block flex={0}>
38+
<Block flex="{0}">
3939
<Text>flex: 0</Text>
4040
</Block>
4141
<Block noFlex>
@@ -46,7 +46,7 @@ Usage:
4646
- flex for half of the size
4747

4848
```html
49-
<Block flex={0.5}>
49+
<Block flex="{0.5}">
5050
<Text>flex: 0.5</Text>
5151
</Block>
5252
```
@@ -145,7 +145,7 @@ Border radius
145145
- round the corners using borderRadius: 6
146146

147147
```html
148-
<Block radius={6}>
148+
<Block radius="{6}">
149149
<Text>1st text</Text>
150150
<Text>2nd text</Text>
151151
</Block>
@@ -247,7 +247,7 @@ Set activeOpacity using opacity prop
247247
default activeOpacity=0.8
248248

249249
```html
250-
<button opacity={0.5}>
250+
<button opacity="{0.5}">
251251
<Text>opacity={0.5}</Text>
252252
</button>
253253
```
@@ -266,7 +266,7 @@ Disabling the button
266266
<button disabled>
267267
<Text>disabled</Text>
268268
</button>
269-
<button disabled={false}>
269+
<button disabled="{false}">
270270
<Text>false</Text>
271271
</button>
272272
```
@@ -277,15 +277,15 @@ Add flex to button style
277277
<button flex>
278278
<Text>flex=1</Text>
279279
</button>
280-
<button flex={2}>
280+
<button flex="{2}">
281281
<Text>flex=2</Text>
282282
</button>
283283
```
284284

285285
Add height to button style
286286

287287
```html
288-
<button height={58}>
288+
<button height="{58}">
289289
<Text>height=58</Text>
290290
</button>
291291
```
@@ -307,7 +307,7 @@ Using Block component with predefined props: color, radius and padding
307307
Border radius using radius props
308308

309309
```html
310-
<Card radius={8}>
310+
<Card radius="{8}">
311311
<Text>radius={8}</Text>
312312
</Card>
313313
```
@@ -317,7 +317,7 @@ Padding using padding props
317317
- default padding={SIZES.base}
318318

319319
```html
320-
<Card padding={12}>
320+
<Card padding="{12}">
321321
<Text>padding={12}</Text>
322322
</Card>
323323
```
@@ -333,7 +333,7 @@ Set shadow using shadow props
333333
<Text>shadow</Text>
334334
</Card>
335335

336-
<Card shadow elevation={2}>
336+
<Card shadow elevation="{2}">
337337
<Text>shadow elevation={2}</Text>
338338
</Card>
339339
```
@@ -403,14 +403,14 @@ Usage:
403403
- fontSize defined by user
404404

405405
```html
406-
<Text size={20}>fontSize of 20</Text>
406+
<Text size="{20}">fontSize of 20</Text>
407407
```
408408

409409
- margin & padding
410410

411411
```html
412-
<Text margin={4}>set margin 4 to: top, right, bottom & left</Text>
413-
<Text padding={6}>set margin 6 to: top, right, bottom & left</Text>
412+
<Text margin="{4}">set margin 4 to: top, right, bottom & left</Text>
413+
<Text padding="{6}">set margin 6 to: top, right, bottom & left</Text>
414414
```
415415

416416
- text styling
@@ -464,7 +464,7 @@ custom theme using the src/theme.js data structure
464464
- include the custom theme to the component props
465465

466466
```html
467-
<Text primary theme={customTheme}>primary using new color: #8A00D4</Text>
467+
<Text primary theme="{customTheme}">primary using new color: #8A00D4</Text>
468468
```
469469

470470
- animating text can be used using the "animated" props

0 commit comments

Comments
 (0)