diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fb7ef7c93..08be6d71f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,7 +24,7 @@ If you are eager to start contributing code right away, you can go through [Nati There are other ways you can contribute without writing a single line of code. Here are a few things you can do to help out: 1. **Replying and handling open issues.** We get a lot of issues every day, and some of them may lack necessary information. You can help out by guiding people through the process of filling out the issue template, asking for clarifying information, or pointing them to existing issues that match their description of the problem. -2. **Reviewing pull requests for the docs.** Reviewing [documentation updates](https://github.com/nativebase/website/pulls) can be as simple as checking for spelling and grammar. If you encounter situations that can be explained better in the docs, click **Edit** at the bottom left of most docs pages to get started with your own contribution. +2. **Reviewing pull requests for the docs.** Reviewing [documentation updates](https://github.com/GeekyAnts/nativebase-docs/pulls) can be as simple as checking for spelling and grammar. If you encounter situations that can be explained better in the docs, click **Edit** at the bottom left of most docs pages to get started with your own contribution. 3. **Help people write test plans.** Some pull requests sent to the main repository may lack a proper test plan. These help reviewers understand how the change was tested, and can speed up the time it takes for a contribution to be accepted. Each of these tasks is highly impactful, and maintainers will greatly appreciate your help. diff --git a/example/storybook/stories/components/Allcomponents.tsx b/example/storybook/stories/components/Allcomponents.tsx new file mode 100644 index 000000000..eb2c6b6bf --- /dev/null +++ b/example/storybook/stories/components/Allcomponents.tsx @@ -0,0 +1,139 @@ +//@ts-nocheck +//uncomment above line to test typing of components +import { + Badge, + IconButton, + Alert, + AspectRatio, + Avatar, + Breadcrumb, + Card, + Container, + Divider, + Kbd, + Progress, + Accordion, + FormControl, + Center, + Square, + Circle, + Fade, + ScaleFade, + PresenceTransition, + Slide, + SlideFade, + Popover, + AlertDialog, + Menu, + SimpleGrid, + Actionsheet, + Fab, + Modal, + Backdrop, + Tooltip, +} from 'native-base'; + +import { + Text, + Checkbox, + Radio, + Hidden, + Button, + Column, + Row, + Box, + Stack, + VStack, + HStack, + ZStack, + Slider, + Icon, + Input, + InputGroup, + InputLeftAddon, + InputRightAddon, + Image, + Spinner, + Heading, + Flex, + Switch, + TextArea, + Link, + Select, + Pressable, + Overlay, + Skeleton, +} from 'native-base'; + +export const Example = () => { + return ( + <> + + + + + + + + + + + + + + + +
+ + + + + + + + }> + + + + }> + + + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +}; diff --git a/example/storybook/stories/components/Wrapper.tsx b/example/storybook/stories/components/Wrapper.tsx index bc318cefe..0d0bbde48 100644 --- a/example/storybook/stories/components/Wrapper.tsx +++ b/example/storybook/stories/components/Wrapper.tsx @@ -45,11 +45,11 @@ const myTheme = extendTheme({ }; }, - myNewButton1: (props: any) => { - return { - padding: props.padding, - }; - }, + // myNewButton1: (props: any) => { + // return { + // padding: props.padding, + // }; + // }, }, sizes: { newsize: ({ mySize }: { mySize: number }) => { diff --git a/example/storybook/stories/components/composites/Toast/StatusRecipies.tsx b/example/storybook/stories/components/composites/Toast/StatusRecipies.tsx index e26f9ef5c..ee3d661f0 100644 --- a/example/storybook/stories/components/composites/Toast/StatusRecipies.tsx +++ b/example/storybook/stories/components/composites/Toast/StatusRecipies.tsx @@ -52,7 +52,7 @@ export const Example = () => { maxWidth="100%" alignSelf="center" flexDirection="row" - status={status ?? 'info'} + status={status ? status : 'info'} variant={variant as any} {...rest} > @@ -91,8 +91,9 @@ export const Example = () => { return (
- {ToastDetails.map((item) => ( + {ToastDetails.map((item, index) => (