-
Notifications
You must be signed in to change notification settings - Fork 0
/
footerchild1.js
51 lines (46 loc) · 1.3 KB
/
footerchild1.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
import React, { Component } from 'react'
import {
StyleSheet,
TouchableOpacity,
Text,
View,
TextInput, Button,
Alert, FlatList, Image
} from 'react-native'
import Icon from 'react-native-vector-icons/Entypo';
export default middlewallpaper = (prop) => {
const setInnerIcon=(type)=>{
if(type=="camera")
return(<Icon name="camera" size={25} color='white'/>);
else if(type=="gallery")
return(<Icon name="image" size={25} color='white' />)
else
return(<Icon name="cross" size={25} color='white'/>)
}
const setIcon = () => {
if (prop.con) {
return (<View style={style.footer1}>
{/* <Icon name="cross" size={25} /> */}
{setInnerIcon(prop.type)}
</View>);
} else {
return (<View style={style.footer1}>
<Icon name="plus" size={25} color='white' />
</View>);
}
}
return (
<View >
{setIcon()}
</View>
);
}
const style = StyleSheet.create(
{
footer1: {
width: 50,justifyContent:'center',alignItems:'center',shadowOpacity:10,shadowColor:'#ddd',
backgroundColor: 'orange', borderRadius: 5, shadowOffset: { height: 5, width: 3 }, elevation: 5,
height: 50
}
}
)