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/checkbox/checkbox.story.tsx | 121 +++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 app/components/checkbox/checkbox.story.tsx (limited to 'app/components/checkbox/checkbox.story.tsx') diff --git a/app/components/checkbox/checkbox.story.tsx b/app/components/checkbox/checkbox.story.tsx new file mode 100644 index 0000000..f8d80d8 --- /dev/null +++ b/app/components/checkbox/checkbox.story.tsx @@ -0,0 +1,121 @@ +/* eslint-disable react-native/no-inline-styles */ +/* eslint-disable react-native/no-color-literals */ + +import * as React from "react" +import { View, ViewStyle } from "react-native" +import { storiesOf } from "@storybook/react-native" +import { StoryScreen, Story, UseCase } from "../../../storybook/views" +import { Checkbox } from "./checkbox" +import { Toggle } from "react-powerplug" + +declare let module + +const arrayStyle: ViewStyle[] = [{ paddingVertical: 40 }, { alignSelf: "flex-end" }] +const arrayOutlineStyle: ViewStyle[] = [{ borderColor: "#b443c9" }, { borderWidth: 25 }] +const arrayFillStyle: ViewStyle[] = [{ backgroundColor: "#55e0ff" }] + +storiesOf("Checkbox", module) + .addDecorator((fn) => {fn()}) + .add("Behaviour", () => ( + + + + {({ on, toggle }) => } + + + + + + + + + + )) + .add("Styling", () => ( + + + + {({ on, toggle }) => ( + + + + )} + + + + + {({ on, toggle }) => ( + + + + )} + + + + + {({ on, toggle }) => ( + + + + )} + + + + + {({ on, toggle }) => ( + + + + )} + + + + + + {({ on, toggle }) => ( + + + + )} + + + + )) -- cgit v1.2.3