import React from 'react';
import {
View,
Image,
Keyboard,
} from 'react-native';
import {
RkButton,
RkText,
RkTextInput,
RkStyleSheet,
RkTheme,
RkAvoidKeyboard,
} from 'react-native-ui-kitten';
import { GradientButton } from '../../components/';
import { scaleVertical } from '../../utils/scale';
import NavigationType from '../../config/navigation/propTypes';
export class SignUp extends React.Component {
static navigationOptions = {
header: null,
};
static propTypes = {
navigation: NavigationType.isRequired,
};
getThemeImageSource = (theme) => (
theme.name === 'light' ?
require('../../assets/images/logo.png') : require('../../assets/images/logoDark.png')
);
renderImage = () => (
);
onSignUpButtonPressed = () => {
this.props.navigation.goBack();
};
onSignInButtonPressed = () => {
this.props.navigation.navigate('Login1');
};
render = () => (
true}
onResponderRelease={() => Keyboard.dismiss()}>
{this.renderImage()}
Registration
Already have an account?
Sign in now
)
}
const styles = RkStyleSheet.create(theme => ({
screen: {
padding: 16,
flex: 1,
justifyContent: 'space-around',
backgroundColor: theme.colors.screen.base,
},
image: {
marginBottom: 10,
height: scaleVertical(77),
resizeMode: 'contain',
},
content: {
justifyContent: 'space-between',
},
save: {
marginVertical: 20,
},
buttons: {
flexDirection: 'row',
marginBottom: 24,
marginHorizontal: 24,
justifyContent: 'space-around',
},
footer: {
justifyContent: 'flex-end',
},
textRow: {
flexDirection: 'row',
justifyContent: 'center',
},
}));