diff --git a/releases/next/docs/actionsheetios.html b/releases/next/docs/actionsheetios.html index 3219eb7a3f6..b277b2f6554 100644 --- a/releases/next/docs/actionsheetios.html +++ b/releases/next/docs/actionsheetios.html @@ -2,7 +2,7 @@ of:

static showShareActionSheetWithOptions(options, failureCallback, successCallback) #

Display the iOS share sheet. The options object should contain one or both of:

NOTE: if url points to a local file, or is a base64-encoded uri, the file it points to will be loaded and shared directly. -In this way, you can share images, videos, PDF files, etc.

Examples #

Edit on GitHub
'use strict'; +In this way, you can share images, videos, PDF files, etc.

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -211,7 +211,7 @@ exports.examples return <ShareScreenshotExample />; } } -];
Next →

Run this example

ActivityIndicatorIOS #

Edit on GitHub

Props #

animating bool #

Whether to show the indicator (true, the default) or hide it (false).

color string #

The foreground color of the spinner (default is gray).

hidesWhenStopped bool #

Whether the indicator should hide when not animating (true by default).

onLayout function #

Invoked on mount and layout changes with

{nativeEvent: { layout: {x, y, width, height}}}.

size enum('small', 'large') #

Size of the indicator. Small has a height of 20, large has a height of 36.

Examples #

Edit on GitHub
'use strict'; +ActivityIndicatorIOS – React Native | A framework for building native apps using React

ActivityIndicatorIOS #

Edit on GitHub

Props #

animating bool #

Whether to show the indicator (true, the default) or hide it (false).

color string #

The foreground color of the spinner (default is gray).

hidesWhenStopped bool #

Whether the indicator should hide when not animating (true by default).

onLayout function #

Invoked on mount and layout changes with

{nativeEvent: { layout: {x, y, width, height}}}.

size enum('small', 'large') #

Size of the indicator. Small has a height of 20, large has a height of 36.

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -145,7 +145,7 @@ exports.examples : 'row', justifyContent: 'space-around', }, -});
© 2016 Facebook Inc.

CameraRoll #

Edit on GitHub

CameraRoll provides access to the local camera roll / gallery.

Methods #

static saveImageWithTag(tag) #

Saves the image to the camera roll / gallery.

On Android, the tag is a local URI, such as "file:///sdcard/img.png".

On iOS, the tag can be one of the following:

  • local URI
  • assets-library tag
  • a tag not matching any of the above, which means the image data will be stored in memory (and consume memory as long as the process is alive)

Returns a Promise which when resolved will be passed the new URI.

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.

Examples #

Edit on GitHub
'use strict'; +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.

Examples #

Edit on GitHub
'use strict'; const React = require('react'); const ReactNative = require('react-native'); @@ -126,7 +126,7 @@ exports.examples : 'Photos', render(): ReactElement { return <CameraRollExample />; } } -];

PickerIOS #

Edit on GitHub

Props #

itemStyle itemStylePropType #

onValueChange function #

selectedValue any #

Examples #

Edit on GitHub
'use strict'; +PickerIOS – React Native | A framework for building native apps using React

PickerIOS #

Edit on GitHub

Props #

itemStyle itemStylePropType #

onValueChange function #

selectedValue any #

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -138,7 +138,7 @@ exports.examples : function(): ReactElement { return <PickerStyleExample />; }, -}];
© 2016 Facebook Inc.

ProgressViewIOS #

Edit on GitHub

Use ProgressViewIOS to render a UIProgressView on iOS.

Props #

progress number #

The progress value (between 0 and 1).

progressImage Image.propTypes.source #

A stretchable image to display as the progress bar.

progressTintColor string #

The tint color of the progress bar itself.

progressViewStyle enum('default', 'bar') #

The progress bar style.

trackImage Image.propTypes.source #

A stretchable image to display behind the progress bar.

trackTintColor string #

The tint color of the progress bar track.

Examples #

Edit on GitHub
'use strict'; +ProgressViewIOS – React Native | A framework for building native apps using React

ProgressViewIOS #

Edit on GitHub

Use ProgressViewIOS to render a UIProgressView on iOS.

Props #

progress number #

The progress value (between 0 and 1).

progressImage Image.propTypes.source #

A stretchable image to display as the progress bar.

progressTintColor string #

The tint color of the progress bar itself.

progressViewStyle enum('default', 'bar') #

The progress bar style.

trackImage Image.propTypes.source #

A stretchable image to display behind the progress bar.

trackTintColor string #

The tint color of the progress bar track.

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -67,7 +67,7 @@ exports.examples : { marginTop: 20, } -});
© 2016 Facebook Inc.

StatusBarIOS #

Edit on GitHub

Deprecated. Use StatusBar instead.

Methods #

static setStyle(style, animated?) #

static setHidden(hidden, animation?) #

static setNetworkActivityIndicatorVisible(visible) #

Examples #

Edit on GitHub
'use strict'; +StatusBarIOS – React Native | A framework for building native apps using React

StatusBarIOS #

Edit on GitHub

Deprecated. Use StatusBar instead.

Methods #

static setStyle(style, animated?) #

static setHidden(hidden, animation?) #

static setNetworkActivityIndicatorVisible(visible) #

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -100,7 +100,7 @@ exports.examples : '#eeeeee', padding: 10, }, -});
© 2016 Facebook Inc.

TabBarIOS #

Edit on GitHub

Props #

barTintColor color #

Background color of the tab bar

tintColor color #

Color of the currently selected tab icon

translucent bool #

A Boolean value that indicates whether the tab bar is translucent

unselectedTintColor color #

Color of text on unselected tabs

Examples #

Edit on GitHub
'use strict'; +TabBarIOS – React Native | A framework for building native apps using React

TabBarIOS #

Edit on GitHub

Props #

barTintColor color #

Background color of the tab bar

tintColor color #

Color of the currently selected tab icon

translucent bool #

A Boolean value that indicates whether the tab bar is translucent

unselectedTintColor color #

Color of text on unselected tabs

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -95,7 +95,7 @@ }, }); -module.exports = TabBarExample;
© 2016 Facebook Inc.

ToastAndroid #

Edit on GitHub

This exposes the native ToastAndroid module as a JS module. This has a function 'show' -which takes the following parameters:

  1. String message: A string with the text to toast
  2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG

Methods #

static show(message, duration) #

Properties #

SHORT: MemberExpression #

LONG: MemberExpression #

Examples #

Edit on GitHub
'use strict'; +which takes the following parameters:

  1. String message: A string with the text to toast
  2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG

Methods #

static show(message, duration) #

Properties #

SHORT: MemberExpression #

LONG: MemberExpression #

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -52,7 +52,7 @@ which takes the following parameters:

  1. String message: A string with t }, }); -module.exports = ToastExample;
© 2016 Facebook Inc.

Vibration #

Edit on GitHub

The Vibration API is exposed at Vibration.vibrate(). The vibration is asynchronous so this method will return immediately.

There will be no effect on devices that do not support Vibration, eg. the simulator.

Note for android -add <uses-permission android:name="android.permission.VIBRATE"/> to AndroidManifest.xml

Vibration patterns are currently unsupported.

Methods #

static vibrate(pattern, repeat) #

static cancel() #

Stop vibration

@platform android

Examples #

Edit on GitHub
'use strict'; +add <uses-permission android:name="android.permission.VIBRATE"/> to AndroidManifest.xml

Vibration patterns are currently unsupported.

Methods #

static vibrate(pattern, repeat) #

static cancel() #

Stop vibration

@platform android

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -83,7 +83,7 @@ exports.examples : '#eeeeee', padding: 10, }, -});
© 2016 Facebook Inc.

VibrationIOS #

Edit on GitHub

NOTE: VibrationIOS is being deprecated. Use Vibration instead.

The Vibration API is exposed at VibrationIOS.vibrate(). On iOS, calling this function will trigger a one second vibration. The vibration is asynchronous so this method will return immediately.

There will be no effect on devices that do not support Vibration, eg. the iOS -simulator.

Vibration patterns are currently unsupported.

Methods #

static vibrate() #

@deprecated

Examples #

Edit on GitHub
'use strict'; +simulator.

Vibration patterns are currently unsupported.

Methods #

static vibrate() #

@deprecated

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -40,7 +40,7 @@ exports.examples : '#eeeeee', padding: 10, }, -});
© 2016 Facebook Inc.