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,
  },
});
PanResponder.create()

static create(config) @param {object} config Enhanced versions of all of

2016-06-23 04:24:49
InteractionManager.clearInteractionHandle()

static clearInteractionHandle(handle) Notify manager that an interaction

2016-06-23 04:24:13
PushNotificationIOS.getApplicationIconBadgeNumber()

static getApplicationIconBadgeNumber(callback) Gets the current badge number

2016-06-23 04:25:00
PushNotificationIOS.checkPermissions()

static checkPermissions(callback) See what push permissions are currently

2016-06-23 04:25:00
NetInfo.fetch()

static fetch() Returns a promise that resolves with one of the connectivity

2016-06-23 04:24:47
Linking#getInitialURL()

getInitialURL() If the app launch was triggered by an app link, it will give the link url, otherwise it

2016-06-23 04:24:19
PixelRatio.startDetecting()

static startDetecting() // No-op for iOS, but used on the web. Should not

2016-06-23 04:24:53
LayoutAnimation.configureNext()

static configureNext(config, onAnimationDidEnd?) Schedules an animation

2016-06-23 04:24:17
AsyncStorage.getItem()

static getItem(key, callback?) Fetches key and passes the result

2016-06-23 04:23:40
InteractionManager.runAfterInteractions()

static runAfterInteractions(task) Schedule a function to run after all interactions

2016-06-23 04:24:14