Module

ReactNative.Components.NavigatorIOS

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

See NavigatorIOS

#NavigatorIOS Source

newtype NavigatorIOS

#navigatorIOS' Source

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

Create a NavigatorIOS with the given props and initialRoute

#NavigatorIOSProps Source

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

#Route Source

data Route :: Type

#RouteM Source

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

#RouteO Source

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

#RouteDefaults Source

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

#mkRoute Source

mkRoute :: forall o props. Optional o RouteO => RouteM props o -> Route