Module

ReactNative.Components.NavigatorIOS

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

See NavigatorIOS

#NavigatorIOS Source

newtype NavigatorIOS

#RouteDefaults Source

type RouteDefaults r = (barTintColor :: Color, navigationBarHidden :: Boolean, shadowHidden :: Boolean, tintColor :: Color, titleTextColor :: Color, translucent :: Boolean | r)

#Route Source

data Route :: Row Effect -> Type

#RouteM Source

type RouteM props o = { component :: { navigator :: NavigatorIOS | props } -> ReactElement, passProps :: Record props, title :: String | o }

#RouteO Source

type RouteO eff = RouteDefaults (backButtonIcon :: ImageSource, backButtonTitle :: String, leftButtonIcon :: ImageSource, leftButtonSystemIcon :: String, leftButtonTitle :: String, onLeftButtonPress :: UnitEventHandler eff, onRightButtonPress :: UnitEventHandler eff, rightButtonIcon :: ImageSource, rightButtonSystemIcon :: String, rightButtonTitle :: String, titleImage :: ImageSource, wrapperStyle :: Styles)

#NavigatorIOSProps Source

type NavigatorIOSProps o eff = { initialRoute :: Route eff | o }

#mkRoute Source

mkRoute :: forall o eff props. Subrow o (RouteO eff) => RouteM props o -> Route eff

#navigatorIOS' Source

navigatorIOS' :: forall eff o. Subrow o NavigatorIOSPropsO => NavigatorIOSProps o eff -> ReactElement

Create a NavigatorIOS with the given props and initialRoute

#push Source

push :: forall eff. NavigatorIOS -> Route eff -> Eff (state :: ReactState ReadWrite | eff) Unit

#pop Source

pop :: forall eff. NavigatorIOS -> Eff (state :: ReactState ReadWrite | eff) Unit