Skip to content

Commit c4d2bb1

Browse files
committed
Update docs
1 parent 5926541 commit c4d2bb1

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

demo/src/screens/MenuStructure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export const navigationData = {
9191
{title: 'Contacts List', tags: 'list contacts', screen: 'unicorn.lists.ContactsListScreen'},
9292
{title: 'Conversation List', tags: 'list conversation', screen: 'unicorn.lists.ConversationListScreen'},
9393
{title: 'Drawer', tags: 'drawer', screen: 'unicorn.components.DrawerScreen'},
94-
{title: 'SortableList', tags: 'sortable list drag', screen: 'unicorn.components.SortableListScreen'}
94+
{title: 'SortableList', tags: 'sortable list drag', screen: 'unicorn.components.SortableListScreen'},
95+
{title: 'GridList', tags: 'grid list', screen: 'unicorn.components.GridListScreen'},
96+
{title: 'SortableGridList', tags: 'sort grid list drag', screen: 'unicorn.components.SortableGridListScreen'}
9597
]
9698
},
9799
LayoutsAndTemplates: {
@@ -121,8 +123,6 @@ export const navigationData = {
121123
screen: 'unicorn.components.FaderScreen'
122124
},
123125
{title: 'Wizard', tags: 'wizard', screen: 'unicorn.components.WizardScreen'},
124-
{title: 'GridList', tags: 'grid list', screen: 'unicorn.components.GridListScreen'},
125-
{title: 'SortableGridList', tags: 'sort grid list drag', screen: 'unicorn.components.SortableGridListScreen'},
126126
{title: 'GridView', tags: 'grid view', screen: 'unicorn.components.GridViewScreen'}
127127
]
128128
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"category": "infra",
44
"description": "Used to add an inset when a keyboard is used and might hide part of the screen.",
55
"note": "This view is useful only for iOS.",
6-
"extends": ["keyboard/KeyboardTrackingView"],
6+
"extends": ["infra/KeyboardTrackingView"],
77
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/incubatorScreens/IncubatorTextFieldScreen.tsx",
88
"snippet": ["<ScrollView>",
99
" <TextField/>",

scripts/buildDocs.js

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

55
const COMPONENTS_DOCS_DIR = './docs/components';
6-
const VALID_CATEGORIES = ['foundation', 'assets', 'navigation', 'layout', 'controls', 'status', 'media', 'lists', 'form', 'dateTime', 'overlays', 'charts', 'incubator', 'infra'];
6+
const VALID_CATEGORIES = ['foundation', 'basic', 'assets', 'navigation', 'layout', 'controls', 'status', 'media', 'lists', 'form', 'dateTime', 'overlays', 'charts', 'incubator', 'infra'];
77

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

src/components/animatedImage/animatedImage.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "AnimatedImage",
33
"category": "media",
44
"description": "Image component that fades-in the image with animation once it's loaded",
5-
"extends": ["basic/Image"],
5+
"extends": ["media/Image"],
66
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/AnimatedImageScreen.js",
77
"images": ["https://media.giphy.com/media/l0HU7jj0ivEFyZIA0/giphy.gif"],
88
"props": [

src/components/avatar/avatar.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Avatar/Avarat_1.png?raw=true",
77
"https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Avatar/Avarat_2.png?raw=true"
88
],
9-
"extends": ["basic/TouchableOpacity", "basic/Image"],
9+
"extends": ["basic/TouchableOpacity", "media/Image"],
1010
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/AvatarsScreen.tsx",
1111
"props": [
1212
{

src/components/card/cardImage.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Card.Image",
33
"category": "layout",
44
"description": "Inner component for the Card component (better be a direct child)",
5-
"extends": ["basic/Image"],
5+
"extends": ["media/Image"],
66
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/CardsScreen.tsx",
77
"props": [
88
{"name": "width", "type": "number", "description": "Width"},

src/components/progressiveImage/progressiveImage.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ProgressiveImage",
33
"category": "media",
44
"description": "Image component that loads first a small thumbnail of the images, and fades-in the full-sized image with animation once it's loaded",
5-
"extends": ["basic/AnimatedImage"],
5+
"extends": ["media/AnimatedImage"],
66
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ProgressiveImageScreen.js",
77
"props": [
88
{

src/components/sortableGridList/sortableGridList.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"category": "lists",
44
"description": "An sortable grid list (based on GridList component)",
55
"note": "This component supports square items only",
6-
"extends": ["layoutsAndTemplates/GridList"],
6+
"extends": ["lists/GridList"],
77
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/SortableGridListScreen.tsx",
88
"props": [
99
{"name": "data", "type": "any[] & {id: string}", "description": "Data of items with an id prop as unique identifier"},

src/components/touchableOpacity/touchableOpacity.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "TouchableOpacity",
3-
"category": "infra",
3+
"category": "basic",
44
"description": "A wrapper for TouchableOpacity component. Support onPress, throttling and activeBackgroundColor",
55
"extends": ["TouchableOpacity"],
66
"extendsLink": ["https://reactnative.dev/docs/touchableopacity"],

src/components/view/view.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "View",
3-
"category": "infra",
3+
"category": "basic",
44
"description": "An enhanced View component",
55
"extends": ["View"],
66
"extendsLink": ["https://reactnative.dev/docs/view"],

0 commit comments

Comments
 (0)