From 8b21e8b898f421a2ff196712f87b1aafa0f0388a Mon Sep 17 00:00:00 2001 From: meenu Date: Fri, 22 Oct 2021 18:08:34 +0530 Subject: [PATCH] unreleased docs removed --- blog/2019-05-28-hola.md | 11 --- blog/2019-05-29-hello-world.md | 17 ----- blog/2019-05-30-welcome.md | 13 ---- docs/appDrawer.md | 33 +++++---- docs/migration/Accordion.md | 89 ----------------------- versioned_docs/version-3.2.1/appDrawer.md | 2 +- 6 files changed, 19 insertions(+), 146 deletions(-) delete mode 100644 blog/2019-05-28-hola.md delete mode 100644 blog/2019-05-29-hello-world.md delete mode 100644 blog/2019-05-30-welcome.md delete mode 100644 docs/migration/Accordion.md diff --git a/blog/2019-05-28-hola.md b/blog/2019-05-28-hola.md deleted file mode 100644 index 4adbc327f..000000000 --- a/blog/2019-05-28-hola.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -slug: hola -title: Hola -author: Gao Wei -author_title: Docusaurus Core Team -author_url: https://github.com/wgao19 -author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4 -tags: [hola, docusaurus] ---- - -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet diff --git a/blog/2019-05-29-hello-world.md b/blog/2019-05-29-hello-world.md deleted file mode 100644 index 151671f02..000000000 --- a/blog/2019-05-29-hello-world.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -slug: hello-world -title: Hello -author: Endilie Yacop Sucipto -author_title: Maintainer of Docusaurus -author_url: https://github.com/endiliey -author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4 -tags: [hello, docusaurus] ---- - -Welcome to this blog. This blog is created with [**Docusaurus 2 alpha**](https://v2.docusaurus.io/). - - - -This is a test post. - -A whole bunch of other information. diff --git a/blog/2019-05-30-welcome.md b/blog/2019-05-30-welcome.md deleted file mode 100644 index d35d57b7d..000000000 --- a/blog/2019-05-30-welcome.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -slug: welcome -title: Welcome -author: Yangshun Tay -author_title: Front End Engineer @ Facebook -author_url: https://github.com/yangshun -author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4 -tags: [facebook, hello, docusaurus] ---- - -Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well! - -Delete the whole directory if you don't want the blog features. As simple as that! diff --git a/docs/appDrawer.md b/docs/appDrawer.md index 3fa173b72..4001d9dda 100644 --- a/docs/appDrawer.md +++ b/docs/appDrawer.md @@ -3,13 +3,13 @@ id: app-drawer title: App drawer --- -Creating an app drawer like layout is very common and with NativeBase's SimpleGrid make this extremely simple while still keeping it extremely customisable. Here is an example to illustrate it. +Creating an app drawer like layout is very common using FlatList. Here is an example to illustrate it. ```SnackPlayer name=AppDrawer import React from 'react'; import { IconButton, - SimpleGrid, + FlatList, Icon, NativeBaseProvider, Box, @@ -41,19 +41,22 @@ function AppDrawer() { ]; return ( - - {icons.map((icon) => ( - - } - /> - ))} - + { + return ( + + } + /> + ) + }} /> ); } diff --git a/docs/migration/Accordion.md b/docs/migration/Accordion.md deleted file mode 100644 index 9f75bc7ea..000000000 --- a/docs/migration/Accordion.md +++ /dev/null @@ -1,89 +0,0 @@ -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -We have sliced Accordion into multiple smaller component which not only provides more control over the the code but also makes it more readable. - -## Overview - -Migrating Checkbox components can broadly described in these points: - -- **dataArray** is depreciated. -- **expanded** → `defaultIndex`, and now accepts array of index. -- Pros like **headerStyle**, **contentStyle**, **icon**, **expandedIcon**, **iconStyle**, **expandedIconStyle**, **renderHeader**, **renderContent** are _no longer required_ as components like `Accordion.Button`, `Accordion.Panel`, `Accordion.Icon` replaces them. -- **onAccordionOpen,** **onAccordionOpen** → `onChange`, one callback instead of 2. - -## Code Comparison - - - - -```tsx -import React, { Component } from 'react'; -import { Container, Header, Content, Accordion } from 'native-base'; -const dataArray = [ - { - title: 'First Element', - content: 'Lorem ipsum dolor sit amet', - }, - { title: 'Second Element', content: 'Lorem ipsum dolor sit amet' }, - { - title: 'Third Element', - content: 'Lorem ipsum dolor sit amet', - }, -]; -export default class AccordionExample extends Component { - render() { - return ( - -
- - - - - ); - } -} -``` - - - - -```tsx -import React from 'react'; -import { Accordion } from 'native-base'; -export default function () { - return ( - - - - First Element - - - Lorem ipsum dolor sit amet - - - - Second Element - - - Lorem ipsum dolor sit amet - - - - Third Element - - - Lorem ipsum dolor sit amet - - - ); -} -``` - - - diff --git a/versioned_docs/version-3.2.1/appDrawer.md b/versioned_docs/version-3.2.1/appDrawer.md index a4c09e77b..4001d9dda 100644 --- a/versioned_docs/version-3.2.1/appDrawer.md +++ b/versioned_docs/version-3.2.1/appDrawer.md @@ -3,7 +3,7 @@ id: app-drawer title: App drawer --- -Creating an app drawer like layout is very common and with NativeBase's SimpleGrid make this extremely simple while still keeping it extremely customisable. Here is an example to illustrate it. +Creating an app drawer like layout is very common using FlatList. Here is an example to illustrate it. ```SnackPlayer name=AppDrawer import React from 'react';