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
#nativeImageSource Source
nativeImageSource :: { android :: String, height :: Int, width :: Int } -> ImageSource
- Modules
- ReactNative.
API - ReactNative.
Android. API - ReactNative.
Android. Components - ReactNative.
Android. Components. ProgressBarAndroid - ReactNative.
Components - ReactNative.
Components. ActivityIndicator - ReactNative.
Components. Button - ReactNative.
Components. Image - ReactNative.
Components. ListView - ReactNative.
Components. Modal - ReactNative.
Components. NavigatorIOS - ReactNative.
Components. Picker - ReactNative.
Components. SafeAreaView - 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.
Optional - ReactNative.
Platform - ReactNative.
PropTypes - ReactNative.
PropTypes. Color - ReactNative.
Styles - ReactNative.
Styles. Flex - ReactNative.
Styles. Image - ReactNative.
Styles. Text - ReactNative.
Unsafe. ApplyProps - ReactNative.
Unsafe. Components