Module

ReactNative.Components.Switch

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

See Switch

#SwitchProps Source

type SwitchProps eff = { disabled :: Boolean, ios :: Prop { onTintColor :: Color, thumbTintColor :: Color, tintColor :: Color }, onValueChange :: EventHandler eff Boolean, testID :: String, value :: Boolean }

#switch Source

switch :: forall eff. { onValueChange :: EventHandler eff Boolean, value :: Boolean } -> ReactElement

Create a Switch with a value and change handler

#switch' Source

switch' :: forall eff. Prop (SwitchProps eff) -> { onValueChange :: EventHandler eff Boolean, value :: Boolean } -> ReactElement

Create a Switch with props, a value and a change handler