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#Presets
  • References/JavaScript/React Native/APIs

Presets: ObjectExpression

2025-01-10 15:47:30
NativeMethodsMixin.measureLayout()
  • References/JavaScript/React Native/APIs

static measureLayout(relativeToNativeNode, onSuccess, onFail) Like measure()

2025-01-10 15:47:30
PushNotificationIOS.popInitialNotification()
  • References/JavaScript/React Native/APIs

static popInitialNotification() DEPRECATED: An initial notification will

2025-01-10 15:47:30
AsyncStorage.removeItem()
  • References/JavaScript/React Native/APIs

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

2025-01-10 15:47:30
AlertIOS.alert()
  • References/JavaScript/React Native/APIs

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

2025-01-10 15:47:30
LayoutAnimation#Types
  • References/JavaScript/React Native/APIs

Types: CallExpression

2025-01-10 15:47:30
Linking#addEventListener()
  • References/JavaScript/React Native/APIs

addEventListener(type, handler) Add a handler to Linking changes by listening to the url event

2025-01-10 15:47:30
Animated.timing()
  • References/JavaScript/React Native/APIs

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

2025-01-10 15:47:30
TimePickerAndroid.open()
  • References/JavaScript/React Native/APIs

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

2025-01-10 15:47:30
DatePickerAndroid.dismissedAction()
  • References/JavaScript/React Native/APIs

static dismissedAction() The dialog has been dismissed.

2025-01-10 15:47:30