-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
77 lines (68 loc) · 2.18 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import React from 'react';
import {SafeAreaView, ScrollView, StyleSheet, Text, View} from 'react-native';
import {ButtonOutline, ButtonSolid} from 'react-native-ui-buttons';
const App = (): JSX.Element => {
return (
<SafeAreaView>
<ScrollView style={styles.container}>
{/* Button Outline Examples */}
<Text style={styles.heading}>ButtonOutline (enabled)</Text>
<ButtonOutline
title={'Test Button'}
onPress={() => console.debug('Button Outline Pressed')}
materialIconRight={'check'}
/>
<Text style={styles.heading}>ButtonOutline (disabled)</Text>
<ButtonOutline
title={'Test Button'}
disabled={true}
onPress={() => console.debug('Button Outline Pressed')}
materialIconRight={'check'}
/>
<Text style={styles.heading}>ButtonOutline (loading)</Text>
<ButtonOutline
title={'Test Button'}
buttonLoading={true}
disabled={true}
onPress={() => console.debug('Button Outline Pressed')}
materialIconRight={'check'}
/>
<View style={{margin: 20}} />
{/* ButtonSolid Examples */}
<Text style={styles.heading}>ButtonSolid (enabled)</Text>
<ButtonSolid
title={'Test Button'}
onPress={() => console.debug('Button Solid Pressed')}
materialIconRight={'check'}
/>
<Text style={styles.heading}>ButtonSolid (disabled)</Text>
<ButtonSolid
title={'Test Button'}
disabled={true}
onPress={() => console.debug('Button Solid Pressed')}
materialIconRight={'check'}
/>
<Text style={styles.heading}>ButtonSolid (loading)</Text>
<ButtonSolid
title={'Test Button'}
buttonLoading={true}
disabled={true}
onPress={() => console.debug('Button Solid Pressed')}
materialIconRight={'check'}
/>
</ScrollView>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
heading: {
textAlign: 'center',
marginBottom: 10,
marginTop: 20,
fontSize: 30,
},
container: {
padding: 20,
},
});
export default App;