This commit is contained in:
henrydays 2019-03-12 23:27:58 +00:00
parent 3d2f5bb1cc
commit c20718bfba
1 changed files with 37 additions and 26 deletions

View File

@ -132,6 +132,12 @@ class App extends Component {
_toggle=()=>{ _toggle=()=>{
this.setState({modalResetPassword:false}) this.setState({modalResetPassword:false})
} }
//faz call
_reset=()=>{
//fecha modal
this.setState({modalResetPassword:false})
//faz call
}
_keyboardDidShow() { _keyboardDidShow() {
//alert('Keyboard Shown'); //alert('Keyboard Shown');
@ -191,6 +197,8 @@ class App extends Component {
isVisible={this.state.modalResetPassword} isVisible={this.state.modalResetPassword}
onBackdropPress={this._toggle} onBackdropPress={this._toggle}
onBackButtonPress={this._toggle} onBackButtonPress={this._toggle}
animationInTiming={1500}
animationOutTiming={1500}
> >
<View style={{ backgroundColor: "white" , padding:20,paddingBottom:0, alignItems:'center'}}> <View style={{ backgroundColor: "white" , padding:20,paddingBottom:0, alignItems:'center'}}>
<View> <View>
@ -211,11 +219,11 @@ class App extends Component {
/> />
<Button <Button
onPress={this._toggle} onPress={this._reset}
title={"Enviar"} title={"Enviar"}
color={"#CC1A17"} color={"#CC1A17"}
></Button> ></Button>
<Text style={{textAlign:'center', fontSize:12, margin:10,marginBottom:0}}> Caso tenhas problemas com este processo deves contactar a comissão atravês do email geral.</Text> <Text style={{textAlign:'center', fontSize:12, margin:10,marginBottom:5}}> Caso tenhas problemas com este processo deves contactar a comissão organizadora atravês do email geral.</Text>
</View> </View>
</View> </View>
@ -249,10 +257,10 @@ class App extends Component {
<Icon <Icon
style={styles.searchIcon} style={styles.searchIcon}
name="ios-qr-scanner" name="ios-qr-scanner"
size={30} size={40}
color="#000" color="#000"
/> />
<Text>Scan QR</Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
@ -271,13 +279,11 @@ class App extends Component {
placeholder="Password" placeholder="Password"
/> />
{ !this.props.loadingLogin && { !this.props.loadingLogin &&
<RkButton <View style={{alignItems:'center', margin:20}}>
rkType="dark" <TouchableOpacity onPress={this._tryLogin} style={{backgroundColor:'#CC1A17',borderRadius:3}}>
style={styles.loginBtn} <Text style={{color:'white', fontSize:20, margin:10, width:150,textAlign:'center',}}>Login</Text>
onPress={this._tryLogin} </TouchableOpacity>
> </View>
Entrar
</RkButton>
} }
{this.props.alignItems && {this.props.alignItems &&
<ActivityIndicator size="large" color="#0000ff" /> <ActivityIndicator size="large" color="#0000ff" />
@ -300,8 +306,8 @@ class App extends Component {
<RkText rkType="primary3">Não sabes a password?</RkText> <RkText rkType="primary3">Não sabes a password?</RkText>
<RkButton rkType="clear" onPress={this.onSignUpButtonPressed}> <RkButton rkType="clear" onPress={this.onSignUpButtonPressed}>
<TouchableOpacity onPress={() => {this.setState({modalResetPassword:true})}}> <TouchableOpacity onPress={() => {this.setState({modalResetPassword:true})}}>
<RkText style={{ color: "red" }} kType="header6"> <RkText style={{ color: "#CC1A17", fontWeight:'bold' }} kType="header6">
Recuperar Password Reset Password
</RkText> </RkText>
</TouchableOpacity> </TouchableOpacity>
</RkButton> </RkButton>
@ -332,7 +338,7 @@ const styles = {
}, },
resetPassword:{ resetPassword:{
borderRadius: 90,
borderColor: "#bfbdbd", borderColor: "#bfbdbd",
borderWidth: 1, borderWidth: 1,
@ -344,14 +350,14 @@ const styles = {
backgroundColor: "white", backgroundColor: "white",
borderRadius: 90, borderRadius: 3,
height: SCREEN_HEIGHT * 0.08, height: SCREEN_HEIGHT * 0.08,
borderColor: "#bfbdbd", borderColor: "#bfbdbd",
borderWidth: 1, borderWidth: 1,
paddingLeft: SCREEN_WIDTH * 0.05 paddingLeft: SCREEN_WIDTH * 0.05
}, },
passwordInput: { passwordInput: {
borderRadius: 90,
borderColor: "#bfbdbd", borderColor: "#bfbdbd",
borderWidth: 1, borderWidth: 1,
@ -361,7 +367,7 @@ const styles = {
backgroundColor: "white", backgroundColor: "white",
borderRadius: 90, borderRadius: 3,
height: SCREEN_HEIGHT * 0.08, height: SCREEN_HEIGHT * 0.08,
borderColor: "#bfbdbd", borderColor: "#bfbdbd",
borderWidth: 1, borderWidth: 1,
@ -373,15 +379,19 @@ const styles = {
}, },
scanQR: { scanQR: {
//flexDirection: 'row', //flexDirection: 'row',
paddingTop: 5, flex:1,
//paddingTop: 5,
backgroundColor: 10, backgroundColor: 10,
alignItems:'center',
padding:5,
paddingRight:15,
width: 80, //width: 80,
paddingLeft: 10, // paddingLeft: 10,
backgroundColor: "#f24b4b", backgroundColor: "#CC1A17",
borderBottomRightRadius: 90, borderBottomRightRadius: 3,
borderTopRightRadius: 90, borderTopRightRadius: 3,
height: "100%" // height: "100%"
}, },
inputSection: { inputSection: {
flexDirection: "row", flexDirection: "row",
@ -389,7 +399,7 @@ const styles = {
backgroundColor: "white", backgroundColor: "white",
borderRadius: 90, borderRadius: 3,
height: SCREEN_HEIGHT * 0.08, height: SCREEN_HEIGHT * 0.08,
borderColor: "#bfbdbd", borderColor: "#bfbdbd",
borderWidth: 1 borderWidth: 1
@ -448,7 +458,8 @@ const styles = {
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
marginTop: 200 marginTop: 200,
}, },
logo2: { logo2: {