mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-01-12 22:50:22 +08:00
prop for keyboard style (#754)
This commit is contained in:
committed by
Xavier Carpentier
parent
0dc14c209f
commit
feecf697d0
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user