Image#onProgress

iosonProgress function Invoked on download progress with {nativeEvent: {loaded, total}}

Profiling Android UI Performance

We try our best to deliver buttery-smooth UI performance by default, but sometimes that just isn't possible. Remember, Android supports 10k+ different phones and is generalized to support software rendering: the framework architecture and need to generalize across many hardware targets unfortunately means you get less for free relative to iOS. But sometimes, there are things you can improve (and many times it's not native code's fault at all!). The first step for debugging this jank is to answe

TextInput#numberOfLines

androidnumberOfLines number Sets the number of lines for a TextInput. Use it with multiline set to true to be able to fill the lines.

Image.prefetch()

static prefetch(url: string) Prefetches a remote image for later use by downloading it to the disk cache

ToolbarAndroid#subtitleColor

subtitleColor color Sets the toolbar subtitle color.

Animated#setOffset()

setOffset(offset) Sets an offset that is applied on top of whatever value is set, whether via setValue, an animation, or Animated.event. Useful for compensating things like the start of a pan gesture.

TextInput#placeholder

placeholder string The string that will be rendered before text input has been entered

Navigator#pop()

pop() Transition back and unmount the current scene.

AppRegistry.registerComponent()

static registerComponent(appKey, getComponentFunc)

ToolbarAndroid#contentInsetEnd

contentInsetEnd number Sets the content inset for the toolbar ending edge. The content inset affects the valid area for Toolbar content other than the navigation button and menu. Insets define the minimum margin for these components and can be used to effectively align Toolbar content along well-known gridlines.