Skip to content

Commit 9737729

Browse files
SurajSuraj
authored andcommitted
fix: added todo app example
1 parent f4dd212 commit 9737729

File tree

4 files changed

+49
-1
lines changed

4 files changed

+49
-1
lines changed

example/storybook-nativewind/.storybook/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const parameters = {
8989
'Hooks',
9090
['useBreakPointValue', 'useMediaQuery'],
9191
'Apps',
92-
['Dashboard App', 'Starter Kit', 'Storybook App'],
92+
['Dashboard App', 'Todo App', 'Starter Kit', 'Storybook App'],
9393
'Guides',
9494
[
9595
'Recipes',
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
3+
export const Expand = () => {
4+
return (
5+
<svg
6+
width="40"
7+
height="40"
8+
viewBox="0 0 40 40"
9+
fill="none"
10+
xmlns="http://www.w3.org/2000/svg"
11+
>
12+
<rect x="0.5" y="0.5" width="39" height="39" rx="19.5" fill="black" />
13+
<path
14+
d="M27.235 21.234H12.765V24.728L8 19.964L12.765 15.199V18.693H27.235V15.199L32 19.964L27.235 24.729V21.234Z"
15+
fill="#FAFAFA"
16+
/>
17+
<rect x="0.5" y="0.5" width="39" height="39" rx="19.5" stroke="#525252" />
18+
</svg>
19+
);
20+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Todo App | gluestack-ui
3+
description: A todo app created using all the components of gluestack-ui v2
4+
toc: false
5+
---
6+
7+
import { Canvas, Meta, Story } from '@storybook/addon-docs';
8+
import Responsiveness from '../../extra-components/nativewind/Responsive';
9+
import { todoapp } from '../../extra-components/nativewind/appConfig';
10+
11+
<Meta title="with-nativewind/Apps/Todo App" />
12+
13+
# Todo App
14+
15+
This [Todo App](https://gluestack-ui-todo-example-app.vercel.app/) is built using `gluestack-ui v2`.
16+
17+
<Responsiveness {...todoapp} showMenuItems={true} />
18+
19+
GitHub link for this [Todo App](https://github.com/gluestack/gluestack-ui-todo-example-app).

example/storybook-nativewind/src/extra-components/nativewind/appConfig.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ export const kitchensink = {
77
qrCodeUri:
88
'https://qr.expo.dev/eas-update?slug=exp&projectId=42cce9b5-9fbe-4572-92ba-fc43b2437a85&groupId=432e8802-2a73-4498-8301-5ac41664678e',
99
};
10+
export const todoapp = {
11+
updateIds: {
12+
android: 'd2aa812c-739b-4200-8455-a8ca6da22310',
13+
ios: '742e1120-7c9a-4bba-bfe0-1dd4b812934b',
14+
},
15+
iframeUri: 'https://gluestack-ui-todo-example-app.vercel.app/',
16+
qrCodeUri:
17+
'https://qr.expo.dev/eas-update?slug=exp&projectId=42cce9b5-9fbe-4572-92ba-fc43b2437a85&groupId=432e8802-2a73-4498-8301-5ac41664678e',
18+
};
1019

1120
export const appStoryConfig = {
1221
updateIds: {

0 commit comments

Comments
 (0)