Add a prop for iOS to display the keyboard without user input

This commit is contained in:
Amsul 2016-09-23 12:48:13 -04:00
parent 0f7e39ebdb
commit 6f6cd7a02c
2 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,7 @@ RCT_EXPORT_VIEW_PROPERTY(onLoadingError, RCTDirectEventBlock)
RCT_EXPORT_VIEW_PROPERTY(onShouldStartLoadWithRequest, RCTDirectEventBlock)
RCT_REMAP_VIEW_PROPERTY(allowsInlineMediaPlayback, _webView.allowsInlineMediaPlayback, BOOL)
RCT_EXPORT_VIEW_PROPERTY(onBridgeMessage, RCTDirectEventBlock)
RCT_REMAP_VIEW_PROPERTY(keyboardDisplayRequiresUserAction, _webView.keyboardDisplayRequiresUserAction, BOOL)
- (NSDictionary<NSString *, id> *)constantsToExport
{

View File

@ -105,6 +105,8 @@ var WebViewBridge = React.createClass({
onBridgeMessage: PropTypes.func,
hideKeyboardAccessoryView: PropTypes.bool,
keyboardDisplayRequiresUserAction: PropTypes.bool,
},
getInitialState: function() {