1
+ // // @flow
2
+ //
3
+ // import React from 'react';
4
+ // import {
5
+ // View,
6
+ // Image,
7
+ // Keyboard
8
+ // } from 'react-native';
9
+ // import {
10
+ // RkButton,
11
+ // RkText,
12
+ // RkTextInput,
13
+ // RkAvoidKeyboard, RkStyleSheet
14
+ // } from 'react-native-ui-kitten';
15
+ // import {GradientButton} from '../../components/';
16
+ // import {RkTheme} from 'react-native-ui-kitten';
17
+ // import {scale, scaleModerate, scaleVertical} from '../../utils/scale';
18
+ //
19
+ // export class LoginV2 extends React.Component {
20
+ // static navigationOptions = {
21
+ // header: null
22
+ // };
23
+ //
24
+ // constructor(props) {
25
+ // super(props);
26
+ // }
27
+ //
28
+ // render() {
29
+ // let renderIcon = () => {
30
+ // if (RkTheme.current.name === 'light')
31
+ // return <Image style={styles.image} source={require('../../assets/images/logo.png')}/>;
32
+ // return <Image style={styles.image} source={require('../../assets/images/logoDark.png')}/>
33
+ // };
34
+ //
35
+ // return (
36
+ // <RkAvoidKeyboard
37
+ // style={styles.screen}
38
+ // onStartShouldSetResponder={ (e) => true}
39
+ // onResponderRelease={ (e) => Keyboard.dismiss()}>
40
+ // <View style={styles.header}>
41
+ // {renderIcon()}
42
+ // <RkText rkType='light h1'>React Native</RkText>
43
+ // <RkText rkType='logo h0'>UI Kitten</RkText>
44
+ // </View>
45
+ // <View style={styles.content}>
46
+ // <View>
47
+ // import React from 'react';
48
+ // import {
49
+ // View,
50
+ // Image,
51
+ // Keyboard
52
+ // } from 'react-native';
53
+ // import {
54
+ // RkButton,
55
+ // RkText,
56
+ // RkTextInput,
57
+ // RkAvoidKeyboard, RkStyleSheet
58
+ // } from 'react-native-ui-kitten';
59
+ // import {FontAwesome} from '../../assets/icons';
60
+ // import {GradientButton} from '../../components/';
61
+ // import {RkTheme} from 'react-native-ui-kitten';
62
+ // import {scale, scaleModerate, scaleVertical} from '../../utils/scale';
63
+ //
64
+ // export class LoginV2 extends React.Component {
65
+ // static navigationOptions = {
66
+ // header: null
67
+ // };
68
+ //
69
+ // constructor(props) {
70
+ // super(props);
71
+ // }
72
+ //
73
+ // render() {
74
+ // let renderIcon = () => {
75
+ // if (RkTheme.current.name === 'light')
76
+ // return <Image style={styles.image} source={require('../../assets/images/logo.png')}/>;
77
+ // return <Image style={styles.image} source={require('../../assets/images/logoDark.png')}/>
78
+ // };
79
+ //
80
+ // return (
81
+ // <RkAvoidKeyboard
82
+ // style={styles.screen}
83
+ // onStartShouldSetResponder={ (e) => true}
84
+ // onResponderRelease={ (e) => Keyboard.dismiss()}>
85
+ // <View style={styles.header}>
86
+ // {renderIcon()}
87
+ // <RkText rkType='light h1'>React Native</RkText>
88
+ // <RkText rkType='logo h0'>UI Kitten</RkText>
89
+ // </View>
90
+ // <View style={styles.content}>
91
+ // <View>
92
+ // <RkTextInput rkType='rounded' placeholder='Username'/>
93
+ // <RkTextInput rkType='rounded' placeholder='Password' secureTextEntry={true}/>
94
+ // <GradientButton style={styles.save} rkType='large' text='LOGIN' onPress={() => {
95
+ // this.props.navigation.goBack()
96
+ // }}/>
97
+ // </View>
98
+ // <View style={styles.buttons}>
99
+ // <RkButton style={styles.button} rkType='social'>
100
+ // <RkText rkType='awesome hero'>{FontAwesome.twitter}</RkText>
101
+ // </RkButton>
102
+ // <RkButton style={styles.button} rkType='social'>
103
+ // <RkText rkType='awesome hero'>{FontAwesome.google}</RkText>
104
+ // </RkButton>
105
+ // <RkButton style={styles.button} rkType='social'>
106
+ // <RkText rkType='awesome hero'>{FontAwesome.facebook}</RkText>
107
+ // </RkButton>
108
+ // </View>
109
+ //
110
+ // <View style={styles.footer}>
111
+ // <View style={styles.textRow}>
112
+ // <RkText rkType='primary3'>Don’t have an account?</RkText>
113
+ // <RkButton rkType='clear' onPress={() => this.props.navigation.navigate('SignUp')}>
114
+ // <RkText rkType='header6'> Sign up now </RkText>
115
+ // </RkButton>
116
+ // </View>
117
+ // </View>
118
+ // </View>
119
+ // </RkAvoidKeyboard>
120
+ // )
121
+ // }
122
+ // }
123
+ //
124
+ // let styles = RkStyleSheet.create(theme => ({
125
+ // screen: {
126
+ // padding: scaleVertical(16),
127
+ // flex: 1,
128
+ // justifyContent: 'space-between',
129
+ // backgroundColor: theme.colors.screen.base
130
+ // },
131
+ // image: {
132
+ // height: scaleVertical(77),
133
+ // resizeMode: 'contain'
134
+ // },
135
+ // header: {
136
+ // paddingBottom: scaleVertical(10),
137
+ // alignItems: 'center',
138
+ // justifyContent: 'center',
139
+ // flex: 1
140
+ // },
141
+ // content: {
142
+ // justifyContent: 'space-between'
143
+ // },
144
+ // save: {
145
+ // marginVertical: 20
146
+ // },
147
+ // buttons: {
148
+ // flexDirection: 'row',
149
+ // marginBottom: scaleVertical(24),
150
+ // marginHorizontal: 24,
151
+ // justifyContent: 'space-around',
152
+ // },
153
+ // textRow: {
154
+ // flexDirection: 'row',
155
+ // justifyContent: 'center'
156
+ // },
157
+ // button: {
158
+ // borderColor: theme.colors.border.solid
159
+ // },
160
+ // footer: {}
161
+ // }));
162
+ // <RkTextInput rkType='rounded' placeholder='Password' secureTextEntry={true}/>
163
+ // <GradientButton style={styles.save} rkType='large' text='LOGIN' onPress={() => {
164
+ // this.props.navigation.goBack()
165
+ // }}/>
166
+ // </View>
167
+ // <View style={styles.buttons}>
168
+ // <RkButton style={styles.button} rkType='social'>
169
+ // <RkText rkType='awesome hero'>{FontAwesome.twitter}</RkText>
170
+ // </RkButton>
171
+ // <RkButton style={styles.button} rkType='social'>
172
+ // <RkText rkType='awesome hero'>{FontAwesome.google}</RkText>
173
+ // </RkButton>
174
+ // <RkButton style={styles.button} rkType='social'>
175
+ // <RkText rkType='awesome hero'>{FontAwesome.facebook}</RkText>
176
+ // </RkButton>
177
+ // </View>
178
+ //
179
+ // <View style={styles.footer}>
180
+ // <View style={styles.textRow}>
181
+ // <RkText rkType='primary3'>Don’t have an account?</RkText>
182
+ // <RkButton rkType='clear' onPress={() => this.props.navigation.navigate('SignUp')}>
183
+ // <RkText rkType='header6'> Sign up now </RkText>
184
+ // </RkButton>
185
+ // </View>
186
+ // </View>
187
+ // </View>
188
+ // </RkAvoidKeyboard>
189
+ // )
190
+ // }
191
+ // }
192
+ //
193
+ // let styles = RkStyleSheet.create(theme => ({
194
+ // screen: {
195
+ // padding: scaleVertical(16),
196
+ // flex: 1,
197
+ // justifyContent: 'space-between',
198
+ // backgroundColor: theme.colors.screen.base
199
+ // },
200
+ // image: {
201
+ // height: scaleVertical(77),
202
+ // resizeMode: 'contain'
203
+ // },
204
+ // header: {
205
+ // paddingBottom: scaleVertical(10),
206
+ // alignItems: 'center',
207
+ // justifyContent: 'center',
208
+ // flex: 1
209
+ // },
210
+ // content: {
211
+ // justifyContent: 'space-between'
212
+ // },
213
+ // save: {
214
+ // marginVertical: 20
215
+ // },
216
+ // buttons: {
217
+ // flexDirection: 'row',
218
+ // marginBottom: scaleVertical(24),
219
+ // marginHorizontal: 24,
220
+ // justifyContent: 'space-around',
221
+ // },
222
+ // textRow: {
223
+ // flexDirection: 'row',
224
+ // justifyContent: 'center'
225
+ // },
226
+ // button: {
227
+ // borderColor: theme.colors.border.solid
228
+ // },
229
+ // footer: {}
230
+ // }));
0 commit comments