-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
44 lines (41 loc) · 1.2 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
import React from 'react';
import {Dimensions, SafeAreaView, ScrollView} from 'react-native';
import {Button, Stack, Input, Image} from './src';
import {ThemeProvider} from './src/theme';
const width = Dimensions.get('screen').width;
const App = () => {
return (
<ThemeProvider>
<SafeAreaView style={{flex: 1}}>
<ScrollView>
<Stack
px={20}
flex={1}
alignItems="center"
spacing={20}
pt={width / 4}>
<Image
resizeMode="contain"
width={200}
height={100}
source={{
uri:
'http://assets.stickpng.com/images/580b57fcd9996e24bc43c51f.png',
}}
/>
<Input placeholder="this is placeholder" />
<Stack
width={width - 40}
flexDirection="row"
spacing={2}
justifyContent="center">
<Button colorScheme="black" label="search" />
<Button colorScheme="blue" label="I'm feeling lucky" />
</Stack>
</Stack>
</ScrollView>
</SafeAreaView>
</ThemeProvider>
);
};
export default App;