import React from "react"; import { SafeAreaProvider } from "react-native-safe-area-context"; import { action } from "storybook/actions"; import { AtlantisOverlayProvider, Content, Form, InputText, } from "@jobber/components-native"; import type { FormProps } from "@jobber/components-native"; type FormStoryArgs = Pick< FormProps<{ firstName: string; lastName: string; nickName: string }, unknown>, "initialValues" | "secondaryActions" >; export function FormBasic(props: Partial) { return (
new Promise(resolve => { setTimeout( () => resolve(action("alert")(JSON.stringify(value, undefined))), 1000, ); }) } onSubmitError={() => undefined} onSubmitSuccess={() => undefined} >
); }