[ReactNative] Use strings instead of constants for keyboardDismissMode

This commit is contained in:
Christopher Chedeau
2015-03-03 10:22:29 -08:00
parent 3daaf1741c
commit 46f41c3d4b
3 changed files with 23 additions and 17 deletions

View File

@@ -239,7 +239,7 @@ var SearchScreen = React.createClass({
renderRow={this.renderRow}
onEndReached={this.onEndReached}
automaticallyAdjustContentInsets={false}
keyboardDismissMode={ScrollView.keyboardDismissMode.OnDrag}
keyboardDismissMode="onDrag"
keyboardShouldPersistTaps={true}
showsVerticalScrollIndicator={false}
/>;

View File

@@ -30,8 +30,7 @@ var UIExplorerPage = React.createClass({
} else {
ContentWrapper = ScrollView;
wrapperProps.keyboardShouldPeristTaps = true;
wrapperProps.keyboardDismissMode =
ScrollView.keyboardDismissMode.Interactive;
wrapperProps.keyboardDismissMode = 'interactive';
}
var title = this.props.title ?
<UIExplorerTitle title={this.props.title} /> :