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,
  },
});
LayoutAnimation#Types

Types: CallExpression

2016-06-23 04:24:16
AsyncStorage.removeItem()

static removeItem(key, callback?) Returns a Promise object.

2016-06-23 04:23:41
DatePickerAndroid.dismissedAction()

static dismissedAction() The dialog has been dismissed.

2016-06-23 04:23:48
PixelRatio.getFontScale()

static getFontScale() Returns the scaling factor for font sizes. This is

2016-06-23 04:24:53
Animated.timing()

static timing(value, config) Animates a value along a timed easing curve

2016-06-23 04:23:35
PushNotificationIOS#getBadgeCount()

getBadgeCount() Gets the badge count number from the aps object

2016-06-23 04:24:58
AlertIOS.prompt()

static prompt(title, message?, callbackOrButtons?, type?, defaultValue?) Prompt

2016-06-23 04:23:24
AsyncStorage.multiMerge()

static multiMerge(keyValuePairs, callback?) Merges existing values with

2016-06-23 04:23:41
AlertIOS.alert()

static alert(title, message?, callbackOrButtons?, type?) Creates a popup

2016-06-23 04:23:24
Animated.add()

static add(a, b) Creates a new Animated value composed from two Animated

2016-06-23 04:23:31