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,
  },
});
InteractionManager.clearInteractionHandle()
  • References/JavaScript/React Native/APIs

static clearInteractionHandle(handle) Notify manager that an interaction

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

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

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

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

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

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

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

static abandonPermissions() Unregister for all remote notifications received

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

static cancelLocalNotifications(userInfo) Cancel local notifications.

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

static checkPermissions(callback) See what push permissions are currently

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

static exitApp()

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

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

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

static removeEventListener(eventName, handler)

2025-01-10 15:47:30