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

'use strict';

var React = require('react');
var ReactNative = require('react-native');
var {
  StyleSheet,
  View,
  Text,
  TouchableHighlight,
  VibrationIOS
} = ReactNative;

exports.framework = 'React';
exports.title = 'VibrationIOS';
exports.description = 'Vibration API for iOS';
exports.examples = [{
  title: 'VibrationIOS.vibrate()',
  render() {
    return (
      <TouchableHighlight
        style={styles.wrapper}
        onPress={() => VibrationIOS.vibrate()}>
        <View style={styles.button}>
          <Text>Vibrate</Text>
        </View>
      </TouchableHighlight>
    );
  },
}];

var styles = StyleSheet.create({
  wrapper: {
    borderRadius: 5,
    marginBottom: 5,
  },
  button: {
    backgroundColor: '#eeeeee',
    padding: 10,
  },
});
Animated#animate()

animate(animation, callback) Typically only used internally, but could be used by a custom Animation class

2016-06-23 04:23:26
Animated.stagger()

static stagger(time, animations) Array of animations may run in parallel

2016-06-23 04:23:35
AsyncStorage.getAllKeys()

static getAllKeys(callback?) Gets all keys known to the app, for

2016-06-23 04:23:40
ActionSheetIOS.showShareActionSheetWithOptions()

static showShareActionSheetWithOptions(options, failureCallback, successCallback)

2016-06-23 04:23:21
StatusBarIOS#setNetworkActivityIndicatorVisible()

setNetworkActivityIndicatorVisible(visible)

2016-06-23 04:25:29
AsyncStorage.flushGetRequests()

static flushGetRequests() Flushes any pending requests using a single multiget

2016-06-23 04:23:39
Linking#canOpenURL()

canOpenURL(url) Determine whether or not an installed app can handle a given URL. NOTE: For web

2016-06-23 04:24:18
AsyncStorage.clear()

static clear(callback?) Erases all AsyncStorage for all clients

2016-06-23 04:23:39
NativeMethodsMixin.focus()

static focus() Requests focus for the given input or view. The exact behavior

2016-06-23 04:24:36
Animated#constructor()

constructor(value)

2016-06-23 04:23:26