|
1 | | -import { StyleSheet, View } from 'react-native' |
2 | | -import { Button, DefaultTheme, Text, ThemeProvider } from '@berty/ui-components' |
3 | | -import FontAwesome6 from '@expo/vector-icons/FontAwesome6' |
4 | | -import Ionicons from '@expo/vector-icons/Ionicons' |
5 | | - |
6 | | -export default function App() { |
7 | | - const theme: DefaultTheme = { |
8 | | - colors: { |
9 | | - black: '#000000', |
10 | | - }, |
11 | | - buttons: { |
12 | | - primary: '#000000', |
13 | | - secondary: '#E5E5E5', |
14 | | - label: { |
15 | | - primary: '#ffffff', |
16 | | - secondary: '#000000', |
17 | | - }, |
18 | | - }, |
19 | | - } |
20 | | - |
21 | | - return ( |
22 | | - <ThemeProvider theme={theme}> |
23 | | - <View style={styles.container}> |
24 | | - <View style={{ justifyContent: 'space-around' }}> |
25 | | - <Text.H1>Create The</Text.H1> |
26 | | - <Text.H1 style={{ color: 'red' }}>Master</Text.H1> |
27 | | - <Text.H1 style={{ color: 'red' }}>Keyword</Text.H1> |
28 | | - </View> |
29 | | - <View style={{ height: 16 }} /> |
30 | | - <Button>Primary Button</Button> |
31 | | - <View style={{ height: 16 }} /> |
32 | | - <Button startIcon={<Ionicons name='checkmark-circle' size={20} color='white' />}>Primary with start icon</Button> |
33 | | - <View style={{ height: 16 }} /> |
34 | | - <Button color='secondary' endIcon={<FontAwesome6 name='copy' size={20} color='black' />}> |
35 | | - Primary with start icon |
36 | | - </Button> |
37 | | - <View style={{ height: 16 }} /> |
38 | | - <Button color='primary' style={{ height: 80, width: 80, borderRadius: 40 }}> |
39 | | - <FontAwesome6 name='copy' size={20} /> |
40 | | - </Button> |
41 | | - <View style={{ height: 16 }} /> |
42 | | - {/* <View style={{ height: 16 }} /> |
43 | | - <Button.Icon aria-label="plus" >Button with icon</Button.Icon> |
44 | | - <View style={{ height: 16 }} /> |
45 | | - <Button.Icon aria-label="minus" >Button with icon</Button.Icon> |
46 | | - <View style={{ height: 16 }} /> |
47 | | - <Button.Icon aria-label="minus" >Secondary</Button.Icon> |
48 | | - <View style={{ height: 16 }} /> |
49 | | - <Button.Icon aria-label="minus" ></Button.Icon> */} |
50 | | - </View> |
51 | | - </ThemeProvider> |
52 | | - ) |
53 | | -} |
54 | | - |
55 | | -const styles = StyleSheet.create({ |
56 | | - container: { |
57 | | - flex: 1, |
58 | | - alignItems: 'center', |
59 | | - justifyContent: 'center', |
60 | | - }, |
61 | | -}) |
| 1 | +export { default } from '../.storybook' |
0 commit comments