Module

ReactNative.PropTypes

Package
purescript-reactnative
Repository
doolse/purescript-reactnative

#ImageSource Source

data ImageSource :: Type

A type representing the source of an image

Unfortunately the purescript compiler currently cannot generate require("./image.png") calls directly, so currently you will need to use FFI code:

Images.purs

module Images where
foreign import myImage :: ImageSource

Images.js

exports.myImage = require("myimage.png");

#uriSrc Source

uriSrc :: String -> ImageSource

Create an ImageSource from a URI string

#uriSrc' Source

uriSrc' :: { height :: Int, uri :: String, width :: Int } -> ImageSource

Create an ImageSource from a URI with a specified width and height

#urisSrc Source

urisSrc :: Array ImageSource -> ImageSource

Create an ImageSource from an Array of ImageSource's

#RefType Source

type RefType ref = EffectFn1 (Nullable ref) Unit

Data type representing the "ref" attribute

#unsafeRef Source

unsafeRef :: forall a. String -> RefType a

Provide a named ref which will be accessible using React.getRefs Facebook say they are deprecating the use of named refs.

#refFunc Source

refFunc :: forall ref. EffectFn1 (Nullable ref) Unit -> RefType ref

Creates a RefType from an effectful function.

#Insets Source

type Insets = { bottom :: Number, left :: Number, right :: Number, top :: Number }

#nativeImageSource Source

nativeImageSource :: { android :: String, height :: Int, width :: Int } -> ImageSource

#AutoEnum Source

class AutoEnum a  where

Members

#NormalEnum Source

class NormalEnum a  where

Members

#CenterEnum Source

class CenterEnum a  where

Members

#VisibilityEnum Source

class VisibilityEnum a  where

Members

#NoneEnum Source

class NoneEnum a  where

Members