Module
ReactNative.Android.Components
- Package
- purescript-reactnative
- Repository
- doolse/purescript-reactnative
#ToolbarAndroidProp Source
type ToolbarAndroidProp eff = ViewPropsEx eff (actions :: Array ToolbarAction, contentInsetEnd :: Int, contentInsetStart :: Int, logo :: ImageSource, navIcon :: ImageSource, onActionSelected :: EventHandler eff Int, onIconClicked :: UnitEventHandler eff, overflowIcon :: ImageSource, rtl :: Boolean, subtitle :: String, subtitleColor :: Color, title :: String, titleColor :: Color) () ()
#toolbarAndroid' Source
toolbarAndroid' :: forall eff. Prop (ToolbarAndroidProp eff) -> Array ReactElement -> ReactElement
Create a ToolbarAndroid component
#action Source
action :: String -> ToolbarAction
#action' Source
action' :: { icon :: Maybe ImageSource, show :: ActionShow, showWithText :: Boolean, title :: String } -> ToolbarAction
#ToolbarAction Source
type ToolbarAction = { icon :: Undefinable ImageSource, show :: ActionShow, showWithText :: Boolean, title :: String }
#ActionShow Source
newtype ActionShow
#always Source
always :: ActionShow
#ifRoom Source
ifRoom :: ActionShow
#never Source
never :: ActionShow
#DrawerPosition Source
data DrawerPosition :: Type
#drawerPosition Source
drawerPosition :: { left :: DrawerPosition, right :: DrawerPosition }
#DrawerLockMode Source
newtype DrawerLockMode
#drawerLockMode Source
drawerLockMode :: { lockedClosed :: DrawerLockMode, lockedOpen :: DrawerLockMode, unlocked :: DrawerLockMode }
#DrawerKeyboardDismissMode Source
newtype DrawerKeyboardDismissMode
#keyboardDismissMode Source
keyboardDismissMode :: { none :: DrawerKeyboardDismissMode, onDrag :: DrawerKeyboardDismissMode }
#DrawerLayoutProps Source
type DrawerLayoutProps eff = { drawerBackgroundColor :: Color, drawerLockMode :: DrawerLockMode, drawerPosition :: DrawerPosition, drawerWidth :: Int, keyboardDismissMode :: DrawerKeyboardDismissMode, onDrawerClose :: EventHandler eff Unit, onDrawerOpen :: EventHandler eff Unit, onDrawerSlide :: EventHandler eff Unit, onDrawerStateChanged :: EventHandler eff Unit, ref :: RefType DrawerLayoutRef, renderNavigationView :: Unit -> ReactElement, statusBarBackgroundColor :: Color }
#drawerLayoutAndroid' Source
drawerLayoutAndroid' :: forall eff. Prop (DrawerLayoutProps eff) -> { drawerPosition :: DrawerPosition, drawerWidth :: Int, renderNavigationView :: Unit -> ReactElement } -> Array ReactElement -> ReactElement
Create a DrawerLayoutAndroid component
#openDrawer Source
openDrawer :: forall eff. DrawerLayoutRef -> Eff eff Unit
#closeDrawer Source
closeDrawer :: forall eff. DrawerLayoutRef -> Eff eff Unit
- Modules
- ReactNative.
API - ReactNative.
Android. API - ReactNative.
Android. Components - ReactNative.
Components - ReactNative.
Components. ActivityIndicator - ReactNative.
Components. Button - ReactNative.
Components. Image - ReactNative.
Components. ListView - ReactNative.
Components. Modal - ReactNative.
Components. NavigationExperimental - ReactNative.
Components. Navigator - ReactNative.
Components. NavigatorIOS - ReactNative.
Components. Picker - ReactNative.
Components. ScrollView - ReactNative.
Components. Slider - ReactNative.
Components. Switch - ReactNative.
Components. Text - ReactNative.
Components. TextInput - ReactNative.
Components. Touchable - ReactNative.
Components. TouchableNativeFeedback - ReactNative.
Components. View - ReactNative.
Events - ReactNative.
Internal. Undefinable - ReactNative.
Platform - ReactNative.
PropTypes - ReactNative.
PropTypes. Color - ReactNative.
Styles - ReactNative.
Styles. Flex - ReactNative.
Styles. Image - ReactNative.
Styles. Text - ReactNative.
Unsafe. ApplyProps - ReactNative.
Unsafe. Components