UNPKG

react-native-select-input-ios

Version:

A React Native SelectInput for iOS and Android, which uses a keyboard with a Picker component

21 lines (17 loc) 466 B
import PropTypes from 'prop-types' import { ViewPropTypes } from 'react-native' import selectInputPropTypes from '../AbstractSelectInput/types.js' export default { ...selectInputPropTypes, mode: PropTypes.oneOf(['dialog', 'dropdown']), style: PropTypes.oneOfType([ ViewPropTypes.style, PropTypes.arrayOf(ViewPropTypes.style) ]) } export const defaultProps = { enabled: true, mode: 'dialog', options: [{ value: 0, label: '0' }], value: 0 }