prop for keyboard style (#754)

This commit is contained in:
Tomás Flores Alvear
2018-02-16 09:54:56 -03:00
committed by Xavier Carpentier
parent 0dc14c209f
commit feecf697d0

View File

@@ -44,6 +44,7 @@ export default class Composer extends React.Component {
accessibilityLabel={this.props.text || this.props.placeholder}
enablesReturnKeyAutomatically
underlineColorAndroid="transparent"
keyboardAppearance={ this.props.keyboardAppearance }
{...this.props.textInputProps}
/>
);
@@ -77,6 +78,7 @@ Composer.defaultProps = {
multiline: true,
textInputStyle: {},
textInputAutoFocus: false,
keyboardAppearance: 'default',
onTextChanged: () => { },
onInputSizeChanged: () => { },
};
@@ -92,4 +94,5 @@ Composer.propTypes = {
multiline: PropTypes.bool,
textInputStyle: TextInput.propTypes.style,
textInputAutoFocus: PropTypes.bool,
keyboardAppearance: PropTypes.string
};