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.checkPermissions()

static checkPermissions(callback) See what push permissions are currently

2016-06-23 04:25:00
Animated#setValue()

setValue(value) Directly set the value. This will stop any animations running on the value and update all

2016-06-23 04:23:28
PixelRatio.startDetecting()

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

2016-06-23 04:24:53
PushNotificationIOS.abandonPermissions()

static abandonPermissions() Unregister for all remote notifications received

2016-06-23 04:24:59
Animated#stopAnimation()

stopAnimation(callback?) Stops any running animation or tracking. callback is invoked with

2016-06-23 04:23:28
LayoutAnimation.configureNext()

static configureNext(config, onAnimationDidEnd?) Schedules an animation

2016-06-23 04:24:17
Vibration.cancel()

static cancel() Stop vibration @platform android

2016-06-23 04:26:01
StyleSheet#flatten

flatten: CallExpression Flattens an array of style objects, into one aggregated style object. Alternatively

2016-06-23 04:25:30
PushNotificationIOS.cancelLocalNotifications()

static cancelLocalNotifications(userInfo) Cancel local notifications.

2016-06-23 04:25:00
AppRegistry.runApplication()

static runApplication(appKey, appParameters)

2016-06-23 04:23:37