import React from 'react'; import {Platform, StyleProp, ViewStyle} from 'react-native'; import {WithTheme, WithThemeStyles} from '../style'; import InputNumber from './InputNumber'; import {StepPropsType} from './PropsType'; import StepperStyles, {StepperStyle} from './style'; export interface StepProps extends StepPropsType, WithThemeStyles { style?: StyleProp; } export default class Stepper extends React.Component { static defaultProps: StepProps = { step: 1, value: 1, readOnly: false, disabled: false, inputStyle: {}, }; render() { const inputAndroidStyle = Platform.OS === 'android' ? { top: 6, paddingTop: 0, height: 26, } : {}; const {inputStyle, ...restProps} = this.props; const keyboardType = Platform.OS === 'android' ? 'numeric' : 'numbers-and-punctuation'; return ( {(styles) => } ); } }