import { storiesOf } from "@storybook/react-native" import SearchIcon from "app/Icons/SearchIcon" import { Box, Input } from "palette" import { PhoneInput } from "palette/elements/Input/PhoneInput/PhoneInput" import React from "react" import { withTheme } from "storybook/decorators" import { DataList, List } from "storybook/helpers" const phoneNumber = "124343434" storiesOf("Input", module) .addDecorator(withTheme) .add("PhoneInput", () => ( { console.log("onChangeText function") }} setValidation={() => { console.log("validation function") }} /> { console.log("onChangeText function") }} setValidation={() => { console.log("validation function") }} disabled /> )) .add("Variants", () => ( } /> )) .add("Multiple placeholders", () => { const placeholders = [ "this is a very long placeholder", "this is slightly shorter", "how about this one", "much shorter", "even more", ] return ( ( )} /> ) })