react-native-select-input-ios
Version:
A React Native SelectInput for iOS and Android, which uses a keyboard with a Picker component
27 lines (21 loc) • 613 B
JavaScript
import React, { Component } from 'react'
import { Text, TouchableOpacity } from 'react-native'
import styles from './styles.js'
import propTypes from './types.js'
class KeyboardButton extends Component {
render() {
const { onPress, text, textAlign, textStyle } = this.props
return (
<TouchableOpacity onPress={onPress}>
<Text
allowFontScaling={false}
style={[styles.buttontext, textStyle, { textAlign: textAlign }]}
>
{text}
</Text>
</TouchableOpacity>
)
}
}
KeyboardButton.propTypes = propTypes
export default KeyboardButton