Skip to content

Commit

Permalink
backup latest legacy changes that were not pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed Dec 9, 2017
1 parent 711fe3d commit f8fcc90
Showing 1 changed file with 94 additions and 79 deletions.
173 changes: 94 additions & 79 deletions src/SignInComponentScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,86 +30,101 @@ export default class SignInComponentScreen extends React.Component {
static navigationOptions = {
title: 'Sign In',
};
render() {
const { navigate } = this.props.navigation;
renderTop() {
return (
<View style={styles.container}>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View style={styles.containerTop}>
<Image source={remoteImageLogo} style={styles.fullscreen}>
<View style={styles.containerVideo}>
<Image source={playIcon} style={styles.icon} />
<Image source={volumeIcon} style={styles.icon} />
<View style={styles.progress}>
<View style={styles.progressBar} />
</View>
<Image source={hdIcon} style={styles.icon} />
<Image source={fullScreenIcon} style={styles.icon} />
</View>
</Image>
</View>
</TouchableWithoutFeedback>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View style={styles.containerMiddle}>
<View style={styles.subContainerMiddle}>
<View style={styles.mobileTop}>
<Text style={styles.mobileTopText}>
Enter your mobile number
</Text>
</View>
<View style={styles.mobileBottom}>
<TextInput
style={styles.mobileBottomTextInputMobilePrefix}
editable={true}
maxLength={10}
autoCorrect={false}
autoFocus={false}
keyboardType={'phone-pad'}
placeholder={'+61'}
placeholderTextColor={'#DDDDDD'}
returnKeyType={'next'}
/>
<TextInput
style={styles.mobileBottomTextInputMobileSuffix}
editable={true}
maxLength={50}
autoCorrect={false}
autoFocus={true}
keyboardType={'phone-pad'}
placeholder={'04xx-xxx-xxx'}
placeholderTextColor={'#DDDDDD'}
returnKeyType={'done'}
onChangeText={(mobile) => this.setState({mobile})}
value={this.state.mobile}
/>
<TouchableHighlight
style={styles.btnClickContain}
onPress={() => navigate('SearchComponent', { mobile: this.state.mobile })}
underlayColor='#042417'>
<View style={styles.btnContainer}>
{iconSignIn}
<Text style={styles.btnText}></Text>
</View>
</TouchableHighlight>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View style={styles.containerTop}>
<Image source={remoteImageLogo} style={styles.fullscreen}>
<View style={styles.containerVideo}>
<Image source={playIcon} style={styles.icon} />
<Image source={volumeIcon} style={styles.icon} />
<View style={styles.progress}>
<View style={styles.progressBar} />
</View>
<Image source={hdIcon} style={styles.icon} />
<Image source={fullScreenIcon} style={styles.icon} />
</View>
</Image>
</View>
</TouchableWithoutFeedback>
);
}
renderMiddle(navigate) {
return (
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View style={styles.containerMiddle}>
<View style={styles.subContainerMiddle}>
<View style={styles.mobileTop}>
<Text style={styles.mobileTopText}>
Enter your mobile number
</Text>
</View>
<View style={styles.mobileBottom}>
<TextInput
style={styles.mobileBottomTextInputMobilePrefix}
editable={true}
maxLength={10}
autoCorrect={false}
autoFocus={false}
keyboardType={'phone-pad'}
placeholder={'+61'}
placeholderTextColor={'#DDDDDD'}
returnKeyType={'next'}
/>
<TextInput
style={styles.mobileBottomTextInputMobileSuffix}
editable={true}
maxLength={50}
autoCorrect={false}
autoFocus={true}
keyboardType={'phone-pad'}
placeholder={'04xx-xxx-xxx'}
placeholderTextColor={'#DDDDDD'}
returnKeyType={'done'}
onChangeText={(mobile) => this.setState({mobile})}
value={this.state.mobile}
/>
<TouchableHighlight
style={styles.btnClickContain}
onPress={() => navigate('SearchComponent', { mobile: this.state.mobile })}
underlayColor='#042417'>
<View style={styles.btnContainer}>
{iconSignIn}
<Text style={styles.btnText}></Text>
</View>
</TouchableHighlight>
</View>
</View>
</TouchableWithoutFeedback>
<View style={styles.containerBottom}>
<View style={styles.subContainerBottom}>
<Text style={styles.signUpText}>
Or sign up
</Text>
<TouchableHighlight
style={styles.btnClickContain}
onPress={() => navigate('SearchComponent', {})}
underlayColor='#042417'>
<View style={styles.btnContainer}>
<Text style={styles.btnText}>Next</Text>
</View>
</TouchableHighlight>
</View>
</View>
</TouchableWithoutFeedback>
);
}
renderBottom(navigate) {
return (
<View style={styles.containerBottom}>
<View style={styles.subContainerBottom}>
<Text style={styles.signUpText}>
Or sign up
</Text>
<TouchableHighlight
style={styles.btnClickContain}
onPress={() => navigate('SearchComponent', {})}
underlayColor='#042417'>
<View style={styles.btnContainer}>
<Text style={styles.btnText}>Next</Text>
</View>
</TouchableHighlight>
</View>
</View>
);
}
render() {
const { navigate } = this.props.navigation;
return (
<View style={styles.container}>
{this.renderTop()}
{this.renderMiddle(navigate)}
{this.renderBottom(navigate)}
</View>
);
}
Expand All @@ -119,8 +134,8 @@ const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center',
justifyContent: 'flex-start',
// alignItems: 'center',
backgroundColor: 'white',
},
containerTop: {
Expand Down Expand Up @@ -173,7 +188,7 @@ const styles = StyleSheet.create({
subContainerMiddle: {
flex: 1,
flexDirection: 'column',
margin: 20,
margin: 5,
borderStyle: 'solid',
borderWidth: 3,
borderRadius: 4,
Expand Down Expand Up @@ -216,7 +231,7 @@ const styles = StyleSheet.create({
subContainerBottom: {
flex: 1,
flexDirection: 'row',
margin: 20,
margin: 5,
borderStyle: 'solid',
borderWidth: 3,
borderRadius: 4,
Expand Down

0 comments on commit f8fcc90

Please sign in to comment.