CheckboxView.js
781 Bytes
import React, {Component} from 'react';
import {
View,
Text,
CheckBox
} from 'react-native';
export default class CheckboxView extends Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
this.data = this.props.data;
this.name = this.data.name || '计算公式';
this.onChangeText = this.props.onChangeText;
this.inputType = this.props.inputType || 'default';// 输入类型
}
render() {
return(
<View style={{width: '100%', backgroundColor: 'white', paddingHorizontal: 5, paddingVertical: 10}}>
<Text style={{fontSize: 16, color: 'rgba(0, 0, 0, 1)', marginBottom: 5}}>{this.title}</Text>
</View>
)
}
}