CalculateFormulaView.js 888 Bytes
import React, {Component} from 'react';
import {
    View,
    Text,
    Image,
} from 'react-native';

export default class CalculateFormulaView extends Component {

    constructor(props) {
        super(props);
        this.state = {
        };
        this.type = this.props.type || "calculate";//
        this.title = this.props.title || '计算公式';
    }

    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>
                <Text
                    placeholderTextColor={'#999'}
                    placeholder={'自动计算数值'}
                />
                <Text style={{fontSize: 16, color: 'rgba(0, 0, 0, 1)'}}>大写</Text>
            </View>
        )
    }
}