Skip to content

Commit e10cfa3

Browse files
Fixing focus() iOS description
1 parent 350177d commit e10cfa3

File tree

4 files changed

+121
-1691
lines changed

4 files changed

+121
-1691
lines changed

.npmignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.circleci/
2+
.vscode/
3+
android/build/
4+
example/
5+
src/__tests__/
6+
.gitattributes
7+
.gitignore
8+
babel.config.js
9+
tsconfig.json
10+
yarn.lock
11+
CONTRIBUTING.md
12+
ios/WebViewAlternative.xcodeproj/xcuserdata/
13+
ios/WebViewAlternative.xcodeproj/project.xcworkspace/xcuserdata/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ When set to `true` this will hide the default keyboard accessory view.
9696
Calls [`requestFocus`](https://developer.android.com/reference/android/webkit/WebView#requestFocus(int,%20android.graphics.Rect)) and shows the keyboard.
9797

9898
#### iOS
99-
Calls [`HTMLElement.blur()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/blur) and [`HTMLElement.focus()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus) on [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement). It won't work if [`keyboardDisplayRequiresUserAction`](#keyboardDisplayRequiresUserAction) is `true` or if `document.activeElement` is not [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement). It is recommended to just focus your field from JavaScript instead of calling this method, calling blur beforehand may be required.
99+
Calls [`HTMLElement.blur()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/blur) and [`HTMLElement.focus()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus) on [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement). It won't work if [`keyboardDisplayRequiresUserAction`](#keyboardDisplayRequiresUserAction) is `true` or if [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement) is not focusable. It is recommended to just focus your field from JavaScript instead of calling this method, calling blur beforehand may be required.
100100

101101
### `injectJavaScript(string)`
102102

package.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,11 @@
77
"types": "lib/typescript/src/index.d.ts",
88
"react-native": "src/index.tsx",
99
"source": "src/index.tsx",
10-
"files": [
11-
"src",
12-
"lib",
13-
"android",
14-
"ios",
15-
"cpp",
16-
"react-native-webview-alternative.podspec"
17-
],
1810
"scripts": {
1911
"test": "jest",
2012
"typescript": "tsc --noEmit",
2113
"lint": "eslint --ext .js,.ts,.tsx .",
2214
"prepare": "bob build && rimraf lib/typescript/src/__tests__ lib/typescript/example",
23-
"release": "release-it",
2415
"example": "yarn --cwd example",
2516
"pods": "cd example && pod-install --quiet",
2617
"bootstrap": "yarn example && yarn && yarn pods"
@@ -41,7 +32,6 @@
4132
"@babel/core": "^7.9.6",
4233
"@react-native-community/bob": "^0.14.2",
4334
"@react-native-community/eslint-config": "^1.1.0",
44-
"@release-it/conventional-changelog": "^1.1.4",
4535
"@types/jest": "^25.2.1",
4636
"@types/react": "^16.9.19",
4737
"@types/react-native": "0.62.7",
@@ -54,7 +44,6 @@
5444
"prettier": "^2.0.5",
5545
"react": "~16.9.0",
5646
"react-native": "~0.61.5",
57-
"release-it": "^13.5.8",
5847
"typescript": "^3.8.3"
5948
},
6049
"peerDependencies": {
@@ -104,23 +93,6 @@
10493
"trailingComma": "es5",
10594
"useTabs": false
10695
},
107-
"release-it": {
108-
"git": {
109-
"commitMessage": "chore: release ${version}",
110-
"tagName": "v${version}"
111-
},
112-
"npm": {
113-
"publish": true
114-
},
115-
"github": {
116-
"release": true
117-
},
118-
"plugins": {
119-
"@release-it/conventional-changelog": {
120-
"preset": "angular"
121-
}
122-
}
123-
},
12496
"@react-native-community/bob": {
12597
"source": "src",
12698
"output": "lib",

0 commit comments

Comments
 (0)