Module

ReactNative.Components.Image

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

See Image

#ImageProps Source

type ImageProps eff = { android :: Prop { resizeMethod :: ResizeMethod }, ios :: Prop { accessibilityLabel :: String, accessible :: Boolean, blurRadius :: Number, capInsets :: { bottom :: Number, left :: Number, right :: Number, top :: Number }, defaultSource :: ImageSource, onPartialLoad :: UnitEventHandler eff, onProgress :: EventHandler eff ImageProgressEvent }, onError :: UnitEventHandler eff, onLayout :: EventHandler eff LayoutEvent, onLoad :: UnitEventHandler eff, onLoadEnd :: UnitEventHandler eff, onLoadStart :: UnitEventHandler eff, resizeMode :: ResizeMode, source :: ImageSource, style :: Styles, testID :: String }

#backgroundImage Source

backgroundImage :: Styles -> ImageSource -> Array ReactElement -> ReactElement

Create a background image with give styles and source

Background images are simply normal images with children overalayed ontop

#backgroundImage' Source

backgroundImage' :: forall eff. Prop (ImageProps eff) -> ImageSource -> Array ReactElement -> ReactElement

Create a background image with props and source

Background images are simply normal images with children overalayed ontop

#image_ Source

image_ :: ImageSource -> ReactElement

Create an Image from source only

#image Source

image :: Styles -> ImageSource -> ReactElement

Create an Image with styles and source only

#image' Source

image' :: forall eff. Prop (ImageProps eff) -> ImageSource -> ReactElement

Create an Image with props and source

#ResizeMethod Source

#ImageProgressEvent Source

type ImageProgressEvent = { nativeEvent :: { loaded :: Number, total :: Number } }