-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.tsx
More file actions
36 lines (34 loc) · 1003 Bytes
/
App.tsx
File metadata and controls
36 lines (34 loc) · 1003 Bytes
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
import * as React from 'react'
import { Text } from 'react-native'
import { StyleSheet, ScrollView, View } from 'react-native'
import { DARK, WHITE } from './src/constants'
import { Button, Space } from './src/components'
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: DARK
},
textStyle: {
color: WHITE,
fontSize: 25,
paddingBottom: 10
}
})
export default function App({}){
const { container, textStyle } = styles
return(
<View style={container}>
<Text style={textStyle}>Buttons</Text>
<Button isOutline={true} isSmall={false} title='Push me'/>
<Space height={15} />
<Button isOutline={false} isSmall={false} title='Push me'/>
<Space height={15} />
<Button isOutline={true} isSmall={true} title='Push me'/>
<Space height={15} />
<Button isOutline={false} isSmall={true} title='Push me'/>
<Space height={15} />
</View>
)
}