Skip to content

Commit 030e2b1

Browse files
committed
✨ examples added
1 parent 8baab48 commit 030e2b1

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,4 +519,4 @@ SPEC CHECKSUMS:
519519

520520
PODFILE CHECKSUM: 2126ffbbdc07ffa06a809dbeeb492bf589bfdfad
521521

522-
COCOAPODS: 1.10.1
522+
COCOAPODS: 1.11.2

src/App.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
import React from 'react';
22
import {SafeAreaView, ScrollView, StyleSheet} from 'react-native';
33
import ButtonOutline from './Buttons/ButtonOutline/ButtonOutline';
4+
import {COLORS} from './Buttons/utils/colors';
45

56
const App = () => {
67
return (
7-
<SafeAreaView style={styles.container}>
8-
<ScrollView>
9-
<ButtonOutline materialIcon={'done'} title={'Click'} />
8+
<SafeAreaView>
9+
<ScrollView style={styles.container}>
10+
<ButtonOutline
11+
materialIcon={'done'}
12+
title={'Click'}
13+
style={{margin: 10}}
14+
/>
15+
<ButtonOutline
16+
useColor={COLORS.GREEN}
17+
materialIcon={'done'}
18+
title={'Click'}
19+
iconAlignRight
20+
style={{margin: 10}}
21+
/>
1022
</ScrollView>
1123
</SafeAreaView>
1224
);
1325
};
1426

1527
const styles = StyleSheet.create({
1628
container: {
17-
padding: 20,
29+
padding: 30,
1830
},
1931
});
2032

src/Buttons/ButtonOutline/ButtonOutline.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,10 @@ const ButtonOutline: FunctionComponent<ButtonOutlineProps> = ({
7676

7777
outlineText: {
7878
color: useColor, // same as main color
79-
fontFamily: 'Nunito-SemiBold',
8079
textAlign: 'center',
8180
},
8281
outlineTextDisabled: {
8382
color: reduceOpacity(useColor, textOpacityReducer), // main color with less opacity
84-
fontFamily: 'Nunito-SemiBold',
8583
textAlign: 'center',
8684
},
8785
});

0 commit comments

Comments
 (0)