Module

ReactNative.Components.Button

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

See Button

#ButtonProps Source

type ButtonProps eff = { accessibilityLabel :: String, color :: Color, disabled :: Boolean, onPress :: EventHandler eff TouchEvent, title :: String }

#button Source

button :: forall eff. String -> EventHandler eff TouchEvent -> ReactElement

Create a button with the given title and onPress handler

#button_ Source

button_ :: String -> ReactElement

Create a button with the given title

#button' Source

button' :: forall eff. Prop (ButtonProps eff) -> String -> ReactElement

Create a button with the given props and title