From e5021187e96b78b53203bd95d08d6818aea47d17 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 14 Jul 2021 15:10:31 +0200 Subject: New Ignite 7.0.6 app --- app/components/header/header.story.tsx | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app/components/header/header.story.tsx (limited to 'app/components/header/header.story.tsx') diff --git a/app/components/header/header.story.tsx b/app/components/header/header.story.tsx new file mode 100644 index 0000000..05093b3 --- /dev/null +++ b/app/components/header/header.story.tsx @@ -0,0 +1,43 @@ +import * as React from "react" +import { View, Alert } from "react-native" +import { storiesOf } from "@storybook/react-native" +import { StoryScreen, Story, UseCase } from "../../../storybook/views" +import { Header } from "./header" +import { color } from "../../theme" + +declare let module + +const VIEWSTYLE = { + flex: 1, + backgroundColor: color.storybookDarkBg, +} + +storiesOf("Header", module) + .addDecorator((fn) => {fn()}) + .add("Behavior", () => ( + + + +
+ + + + +
Alert.alert("left nav")} + /> + + + + +
Alert.alert("right nav")} + /> + + + + )) -- cgit v1.2.3