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,
  },
});
DatePickerAndroid.open()

static open(options) Opens the standard Android date picker dialog.

2016-06-23 04:23:48
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
Animated#Value

Value: AnimatedValue Standard value class for driving animations. Typically initialized with new Animated

2016-06-23 04:23:30
InteractionManager.clearInteractionHandle()

static clearInteractionHandle(handle) Notify manager that an interaction

2016-06-23 04:24:13
NetInfo.addEventListener()

static addEventListener(eventName, handler) Invokes the listener whenever

2016-06-23 04:24:47
PixelRatio.getPixelSizeForLayoutSize()

static getPixelSizeForLayoutSize(layoutSize) Converts a layout size (dp)

2016-06-23 04:24:53
PushNotificationIOS#constructor()

constructor(nativeNotif) You will never need to instantiate PushNotificationIOS yourself. Listening

2016-06-23 04:24:57
InteractionManager#addListener

addListener: CallExpression

2016-06-23 04:24:13
Dimensions.set()

static set(dims) This should only be called from native code by sending

2016-06-23 04:23:50
PushNotificationIOS#getMessage()

getMessage() An alias for getAlert to get the notification's main message string

2016-06-23 04:24:58