-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.tsx
55 lines (52 loc) · 1.59 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
import React from 'react';
import { SafeAreaView, ScrollView, Text, View } from 'react-native';
import { ImagePreview } from 'react-native-images-preview';
import { images } from './assets';
import { CustomHeader, ModalHeader } from './components';
import { imageData, Strings } from './constants';
import { applicationStyle } from './theme';
const {
screen,
scrollViewStyle,
textStyle,
imageStyle,
horizontalView,
customImageStyle,
} = applicationStyle;
const App = () => {
return (
<SafeAreaView style={screen}>
<CustomHeader title={Strings.home} />
<ScrollView style={scrollViewStyle} showsVerticalScrollIndicator={false}>
<Text style={textStyle}>{Strings.dummyText}</Text>
<ImagePreview imageSource={images.forest} imageStyle={imageStyle} />
<Text style={textStyle}>{Strings.dummyText}</Text>
<ImagePreview
imageSource={{
uri: imageData.image1,
}}
imageStyle={imageStyle}
/>
<Text style={textStyle}>{Strings.dummyText}</Text>
<View style={horizontalView}>
<ImagePreview
renderHeader={onPressClose => (
<ModalHeader onPress={onPressClose} />
)}
imageSource={{
uri: imageData.image2,
}}
imageStyle={[imageStyle, customImageStyle]}
/>
<ImagePreview
imageSource={{
uri: imageData.image3,
}}
imageStyle={[imageStyle, customImageStyle]}
/>
</View>
</ScrollView>
</SafeAreaView>
);
};
export default App;