Skip to content

Commit a3538f9

Browse files
authored
docs: add avoid keyboard keyword, update SEO keywords, fix flaky docs e2e tests (#425)
## 📜 Description Added `avoid keyboard` to keywords + updated SEO keywords. ## 💡 Motivation and Context When I do search for `avoid keyboard react native` on `npm` the `react-native-keyboard-controller` is not showing up in the search results: <img width="1529" alt="image" src="https://github.com/kirillzyusko/react-native-keyboard-controller/assets/22820318/e885b77e-b72f-4e2a-89b1-8544888ac900"> So this PR fixes this 🙃 ## 📢 Changelog ### Docs - added `avoid keyboard` to `keywords` in `package.json`; - updated SEO keywords; - fixed flaky e2e test (exclude a picture from blogpost); ## 🤔 How Has This Been Tested? There is no way to test these changes - can be verified only after merge + publishing. ## 📸 Screenshots (if appropriate): 🤷‍♂️ ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
1 parent 0c90ac8 commit a3538f9

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

docs/__tests__/screenshot.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ img[src$='.gif'],
2121
.lottie {
2222
display: none;
2323
}
24+
/* playwright - universal class that will hide element in e2e tests environment */
25+
.playwright {
26+
display: none;
27+
}

docs/blog/2022-09-22-fabric/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ I'm glad to announce, that new upcoming release `1.2.0` brings a support for new
1717

1818
Fortunately this library is backward compatible with old architecture and will be compiled conditionally depending on which architecture you are using. So don't be afraid of updating it to the latest version - it doesn't have any breaking changes!
1919

20-
![react native logo](./react-native.png)
20+
<div class="playwright">
21+
![react native logo](./react-native.png#img-thumbnail)
22+
</div>
2123

2224
<!--truncate-->
2325

docs/docusaurus.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ const config = {
194194
metadata: [
195195
{
196196
name: "keywords",
197-
content: "react-native, keyboard, animation, ios, android",
197+
content:
198+
"react-native, keyboard, animation, ios, android, avoid keyboard, keyboard avoiding view, keyboard aware scroll view, sticky keyboard view, keyboard toolbar",
198199
},
199200
],
200201
algolia: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"focused input",
4848
"text changed",
4949
"avoiding view",
50+
"avoid keyboard",
5051
"sticky view",
5152
"keyboard aware scroll view",
5253
"keyboard toolbar",

0 commit comments

Comments
 (0)