CameraRoll.getPhotos()

static getPhotos(params) Returns a Promise with photo identifier objects from the local camera roll of the device matching shape defined by getPhotosReturnChecker. @param {object} params See getPhotosParamChecker. Returns a Promise which when resolved will be of shape getPhotosReturnChecker.

TabBarIOS.Item#selectedIcon

selectedIcon Image.propTypes.source A custom icon when the tab is selected. It is ignored when a system icon is defined. If left empty, the icon will be tinted in blue.

Timers

Timers are an important part of an application and React Native implements the browser timers. Timers setTimeout, clearTimeout setInterval, clearInterval setImmediate, clearImmediate requestAnimationFrame, cancelAnimationFrame requestAnimationFrame(fn) is not the same as setTimeout(fn, 0) - the former will fire after all the frame has flushed, whereas the latter will fire as quickly as possible (over 1000x per second on a iPhone 5S). setImmediate is executed at the end of the current JavaSc

Animated.createAnimatedComponent()

static createAnimatedComponent(Component) Make any React component Animatable. Used to create Animated.View, etc.

TextInput#onChangeText

onChangeText function Callback that is called when the text input's text changes. Changed text is passed as an argument to the callback handler.

ToolbarAndroid#testID

testID string Used to locate this view in end-to-end tests.

ScrollView#maximumZoomScale

iosmaximumZoomScale number The maximum allowed zoom scale. The default value is 1.0.

AsyncStorage.multiGet()

static multiGet(keys, callback?) multiGet invokes callback with an array of key-value pair arrays that matches the input format of multiSet. Returns a Promise object. multiGet(['k1', 'k2'], cb) -> cb([['k1', 'val1'], ['k2', 'val2']]) Example: AsyncStorage.getAllKeys((err, keys) => { AsyncStorage.multiGet(keys, (err, stores) => { stores.map((result, i, store) => { // get at each store's key/value so you can work with it let key = store[i][0]; let value = store

Integrating with Existing Apps

Since React makes no assumptions about the rest of your technology stack, it's easily embeddable within an existing non-React Native app. Requirements an existing, gradle-based Android app Node.js, see Getting Started for setup instructions Prepare your app In your app's build.gradle file add the React Native dependency: compile "com.facebook.react:react-native:+" // From node_modules In your project's build.gradle file add an entry for the local React Native maven directory: allprojects

PushNotificationIOS.removeEventListener()

static removeEventListener(type, handler) Removes the event listener. Do this in componentWillUnmount to prevent memory leaks