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,
  },
});
PushNotificationIOS.cancelAllLocalNotifications()

static cancelAllLocalNotifications() Cancels all scheduled localNotifications

2016-06-23 04:24:59
CameraRoll.getPhotos()

static getPhotos(params) Returns a Promise with photo identifier objects

2016-06-23 04:23:44
IntentAndroid.getInitialURL()

static getInitialURL(callback) If the app launch was triggered by an app

2016-06-23 04:24:12
AsyncStorage.setItem()

static setItem(key, value, callback?) Sets value for key

2016-06-23 04:23:41
Clipboard.getString()

static getString() Get content of string type, this method returns a Promise

2016-06-23 04:23:45
NativeMethodsMixin.measure()

static measure(callback) Determines the location on screen, width, and height

2016-06-23 04:24:36
StatusBarIOS#setStyle()

setStyle(style, animated?)

2016-06-23 04:25:29
VibrationIOS.vibrate()

static vibrate() @deprecated

2016-06-23 04:26:01
AsyncStorage.mergeItem()

static mergeItem(key, value, callback?) Merges existing value with input

2016-06-23 04:23:40
StyleSheet.create()

static create(obj) Creates a StyleSheet style reference from the given object

2016-06-23 04:25:30