-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathApp.js
More file actions
47 lines (41 loc) · 954 Bytes
/
App.js
File metadata and controls
47 lines (41 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import { StyleSheet, ScrollView} from 'react-native';
import VerifyCode from "./VerifyCodeInput";
type Props = {};
export default class App extends Component<Props> {
constructor(props) {
super(props);
this.state = {
verifyCode: ''
};
this.onChangeVerifyCode = this.onChangeVerifyCode.bind(this);
}
onChangeVerifyCode(text) {
}
render() {
return (
<ScrollView style={styles.container}>
{/* 验证码输入框 */}
<VerifyCode
ref={(ref) => { this.verifyCode = ref; }}
verifyCodeLength={6}
onChangeText={text => this.onChangeVerifyCode(text)}
/>
</ScrollView>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#F5FCFF',
paddingTop: 200
}
});