Skip to content

Commit 030c1c5

Browse files
author
Ali Najafizadeh
authored
Merge pull request #156 from amsul/ios-keyboard-focus-user-input
Add a prop for iOS to display the keyboard without user input
2 parents 0f7e39e + 6f6cd7a commit 030c1c5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ios/RCTWebViewBridgeManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ - (UIView *)view
5050
RCT_EXPORT_VIEW_PROPERTY(onShouldStartLoadWithRequest, RCTDirectEventBlock)
5151
RCT_REMAP_VIEW_PROPERTY(allowsInlineMediaPlayback, _webView.allowsInlineMediaPlayback, BOOL)
5252
RCT_EXPORT_VIEW_PROPERTY(onBridgeMessage, RCTDirectEventBlock)
53+
RCT_REMAP_VIEW_PROPERTY(keyboardDisplayRequiresUserAction, _webView.keyboardDisplayRequiresUserAction, BOOL)
5354

5455
- (NSDictionary<NSString *, id> *)constantsToExport
5556
{

webview-bridge/index.ios.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ var WebViewBridge = React.createClass({
105105
onBridgeMessage: PropTypes.func,
106106

107107
hideKeyboardAccessoryView: PropTypes.bool,
108+
109+
keyboardDisplayRequiresUserAction: PropTypes.bool,
108110
},
109111

110112
getInitialState: function() {

0 commit comments

Comments
 (0)