GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ReScript React Native
  • Docs
  • Components
  • APIs
  • Blog
  • GitHub
  • ActivityIndicator
  • Button
  • DrawerLayoutAndroid
  • FlatList
  • Image
  • ImageBackground
  • InputAccessoryView
  • KeyboardAvoidingView

This view

  • Original page
  • New address

GeezerVison is showing rescript-react-native.github.io — Image | ReScript React Native

Image.Source​

module Source = {
@unboxed
type t =
| Require(Packager.required)
| URISource(imageURISource)
| URISources(array<imageURISource>)
}
<Image
source={Image.Source.Require(Packager.require("./logo.png"))}
style={Style.s({width: 100.->dp, height: 100.->dp})}
/>

<Image
source={Image.Source.URISource({uri: "https://example.com/a.png"})}
alt="example"
/>

Static methods​

Image.getSize(~uri="https://example.com/a.png") // promise<Layout.size>

Image.getSizeWithHeaders(~uri, ~header=dict{("Authorization", "…")})

Image.prefetch(~uri)->ignore

Image.resolveAssetSource(Image.Source.Require(asset))
// => {width, height, uri}
  • Image.Source
  • Static methods
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.