-
Notifications
You must be signed in to change notification settings - Fork 19
/
Post copy.js
54 lines (50 loc) · 2.15 KB
/
Post copy.js
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
Platform,
StatusBar,
FlatList,
Image,
Dimensions,
Button,
TouchableOpacity
} from 'react-native';
import images from 'res/images';
const Post = () => {
return (
<View style={{ flex: 1, flexDirection: 'column' }}>
<View style={{ flex: 1, flexDirection: 'column', alignItems: 'center', height:20, paddingStart: 20, paddingEnd: 20}}>
<Image source={images.zafer} style={{alignSelf:'flex-start', width: 25, height: 25, resizeMode: 'contain'}}/>
<Image source={require('./img/more.png')} style={{alignSelf:'flex-end', width: 10, height: 10, resizeMode: 'contain'}}/>
</View>
<Image source={{ uri: 'https://images.unsplash.com/photo-1575990230677-cbe3765b6197?w=512' }}
style={{ height: 400 }} />
<View style={{ paddingStart: 20, paddingEnd: 20, flex:1, flexDirection:'column', paddingTop:15 }}>
<View style={{ flex:1, flexDirection: 'row'}}>
<Image source={require('./img/like.png')} style={{width: 25, height: 25, resizeMode: 'contain'}}/>
<Image source={require('./img/comment.png')} style={{width: 25, height: 25, resizeMode: 'contain', marginLeft:15}}/>
<Image source={require('./img/dm.png')} style={{width: 25, height: 25, resizeMode: 'contain', marginLeft:15}}/>
{/*<Image source={require('./img/bookmark.png')} style={{alignSelf:'flex-end', width: 25, height: 25, resizeMode: 'contain', marginLeft:15}}/>*/}
</View>
<View style={{ flex:1, flexDirection: 'row', flexWrap: 'wrap'}}><Text style={{ color: '#fff' }}>103 beğenme</Text></View>
<View style={{ flex:1, flexDirection: 'row', flexWrap: 'wrap'}}><Text style={{ color: '#fff' }}>ozaferayan</Text></View>
{/*
<View style={{ flex: 1, flexDirection: 'row', backgroundColor: '#d00' }}>
<Image source={{ uri: 'https://images.unsplash.com/photo-1575990230677-cbe3765b6197?w=96' }} style={{ width: 100 }} />
</View>*/}
</View>
</View>
);
};
export default Post;