Commit 448e355c authored by Juan Manuel Solaro's avatar Juan Manuel Solaro

(feat) add close button and change fonts

1 merge request!394WIP: [Sprint/PinkPanther] (feat) Selector Component
......@@ -2,8 +2,9 @@ import React, {
Component
} from 'react';
import { View, StyleSheet } from 'react-native';
import { Text } from 'react-native-elements';
import { Text, Icon } from 'react-native-elements';
import Modal from 'react-native-modal';
import { CommonStyle } from '../../styles/Common';
export default class Selector extends Component {
......@@ -21,30 +22,49 @@ export default class Selector extends Component {
this.setState({show: true});
}
close = () => {
this.setState({show: false});
}
render() {
const show = this.state.show;
return(
<Modal isVisible={show}>
<View style={styles.container}>
<Text style={{color:'white'}}> Selector Title </Text>
<View style={[styles.container]}>
<Text style={[{color:'white'}, CommonStyle.fontXL]}> Selector Title </Text>
<View style={{height:570}}>
<Text style={{color:'white'}}> List </Text>
</View>
<Icon
raised
name="md-close"
type='ionicon'
color='black'
size={24}
containerStyle={ styles.iconContainer }
onPress={this.close}
/>
</View>
</Modal>
)
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: 'transparent',
width: 200,
height: 450,
alignItems: 'center',
justifyContent: 'center',
position: 'absolute',
top: -150,
right: 70
}
container: {
backgroundColor: 'transparent',
width: 200,
height: 650,
alignItems: 'center',
justifyContent: 'center',
position: 'absolute',
top: 50,
right: 70,
},
iconContainer: {
backgroundColor:'white',
width:55,
height:55,
zIndex:1000,
},
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment