Skip to content

Commit 176aa5f

Browse files
authored
Fix keyboard docs (#2009)
1 parent c36dc25 commit 176aa5f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docuilib/sidebars.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const componentsCategories = {
1414
Form: 'form',
1515
Overlays: 'overlays',
1616
Layout: 'layoutsAndTemplates',
17+
Keyboard: 'keyboard',
1718
Incubator: 'incubator'
1819
};
1920

@@ -49,7 +50,7 @@ module.exports = {
4950
type: 'category',
5051
label: 'Components',
5152
collapsible: false,
52-
items: ['Basic', 'Form', 'Overlays', 'Layout', 'Native', 'Incubator'].map(category => {
53+
items: ['Basic', 'Form', 'Overlays', 'Layout', 'Keyboard', 'Incubator'].map(category => {
5354
return {
5455
type: 'category',
5556
label: category,

lib/components/Keyboard/KeyboardTracking/keyboardAwareInsetsView.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"category": "keyboard",
44
"description": "Used to add an inset when a keyboard is used and might hide part of the screen.",
55
"notes": "This view is useful only for iOS.",
6-
"extends": "KeyboardTrackingView",
6+
"extends": ["KeyboardTrackingView"],
77
"snippet": ["<KeyboardAwareInsetsView/>"]
88
}

scripts/buildDocs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs');
44

55
const COMPONENTS_DOCS_DIR = './docs/components';
66

7-
const result = childProcess.execSync('find ./src -name "*api.json"');
7+
const result = childProcess.execSync('find ./src ./lib/components -name "*api.json"');
88
const apiFiles = result.toString().trim().split('\n');
99

1010
const components = apiFiles.map(filePath => {

0 commit comments

Comments
 (0)