Module

ReactNative.Components.TextInput

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

See TextInput

#TextInputRef Source

newtype TextInputRef

#TextInputProps Source

type TextInputProps eff = ViewPropsEx' eff TextInputRef (autoCapitalize :: AutoCapitalize, autoCorrect :: Boolean, autoFocus :: Boolean, blurOnSubmit :: Boolean, defaultValue :: String, editable :: Boolean, keyboardType :: KeyboardType, maxLength :: Int, multiline :: Boolean, onBlur :: EventHandler eff TextInputEvent, onChange :: EventHandler eff TextInputEvent, onChangeText :: EventHandler eff String, onContentSizeChange :: EventHandler eff ContentSizeEvent, onEndEditing :: EventHandler eff TextInputEvent, onFocus :: EventHandler eff TextInputEvent, onScroll :: EventHandler eff ScrollEvent, onSelectionChange :: EventHandler eff TextInputEvent, onSubmitEditing :: EventHandler eff TextInputEvent, placeholder :: String, placeholderTextColor :: Color, returnKeyType :: ReturnKeyType, secureTextEntry :: Boolean, selectTextOnFocus :: Boolean, selection :: { end :: Int, start :: Int }, selectionColor :: Color, value :: String) (inlineImageLeft :: String, inlineImagePadding :: Int, numberOfLines :: Int, returnKeyLabel :: String, underlineColorAndroid :: Color) (clearButtonMode :: ClearButtonMode, clearTextOnFocus :: Boolean, dataDetectorTypes :: DataDetectorType, enablesReturnKeyAutomatically :: Boolean, keyboardAppearance :: KeyboardAppearance, onKeyPress :: EventHandler eff TextInputEvent, selectionState :: DocumentSelectionState)

#textInput' Source

textInput' :: forall eff. Prop (TextInputProps eff) -> ReactElement

Create a TextInput with the given props

#focus Source

focus :: forall eff. TextInputRef -> Eff eff Unit

Focus the TextInput for the given ref

#isFocused Source

isFocused :: TextInputRef -> Boolean

See if TextInput is focussed for the given ref

#clear Source

clear :: forall eff. TextInputRef -> Eff eff Unit

Clear the value of the TextInput for the given ref

#DocumentSelectionState Source

#KeyboardType Source

newtype KeyboardType

#keyboardType Source

keyboardType :: { asciiCapable :: KeyboardType, decimalPad :: KeyboardType, default :: KeyboardType, emailAddress :: KeyboardType, namePhonePad :: KeyboardType, numberPad :: KeyboardType, numbersAndPunctuation :: KeyboardType, numeric :: KeyboardType, phonePad :: KeyboardType, twitter :: KeyboardType, url :: KeyboardType, webSearch :: KeyboardType }

#AutoCapitalize Source

#autoCapitalize Source

autoCapitalize :: { characters :: AutoCapitalize, none :: AutoCapitalize, sentences :: AutoCapitalize, words :: AutoCapitalize }

#ReturnKeyType Source

#returnKeyType Source

returnKeyType :: { android :: { none :: ReturnKeyType, previous :: ReturnKeyType }, done :: ReturnKeyType, go :: ReturnKeyType, ios :: { default :: ReturnKeyType, emergencyCall :: ReturnKeyType, google :: ReturnKeyType, join :: ReturnKeyType, route :: ReturnKeyType, yahoo :: ReturnKeyType }, next :: ReturnKeyType, search :: ReturnKeyType, send :: ReturnKeyType }

#ClearButtonMode Source

#clearButtonMode Source

clearButtonMode :: { always :: ClearButtonMode, never :: ClearButtonMode, unlessEditing :: ClearButtonMode, whileEditing :: ClearButtonMode }

#KeyboardAppearance Source

#keyboardAppearance Source

#DataDetectorType Source

#dataDetectorType Source

dataDetectorType :: { address :: DataDetectorType, all :: DataDetectorType, calendarEvent :: DataDetectorType, link :: DataDetectorType, none :: DataDetectorType, phoneNumber :: DataDetectorType }