Options
All
  • Public
  • Public/Protected
  • All
Menu

Props for the ConfirmForm component.

Required properties: onConfirmPress.

Allows you to customize ICodeProps and IEmailProps.

Hierarchy

Index

Properties

code

code: string | undefined

Current user input or undefined. Required.

Optional codeInputProps

codeInputProps: ICrossEditorProps | undefined

Optional props for the code input. Typically used to change the label prop.

Read more: https://crossplatformsweden.github.io/react-native-components/interfaces/_components_input_crosseditor_.icrosseditorprops.html

example

<ConfirmForm codeInputProps={{label: 'WouldntYouLikeToKnow'}}> Custom layouts here

Optional confirmButtonProps

confirmButtonProps: ICrossButtonProps | undefined

Optional props for the register button. Typically used to change the title prop.

Read more: https://crossplatformsweden.github.io/react-native-components/interfaces/_components_buttons_crossbutton_.icrossbuttonprops.html

example

<ConfirmForm confirmButtonProps={{title: 'Enlist'}}> Custom layouts here

Optional emailInputProps

emailInputProps: ICrossEditorProps | undefined

Optional props for the e-mail input. Typically used to change the label prop. See {@link ICrossEditorProps}

Optional initialEmail

initialEmail: string | undefined

Optional initial value for the e-mail input

Optional onCodeChanged

onCodeChanged: undefined | function

Optional callback for code changed. Contains code user entered

onConfirmPress

onConfirmPress: function

Occurs when the user press "confirm" button. Required.

Type declaration

    • (): void
    • Returns void

onEmailChanged

onEmailChanged: function

Occurs when the user inputs e-mail

Type declaration

    • (email: string | undefined): void
    • Parameters

      • email: string | undefined

      Returns void

Optional testID

testID: string | undefined