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.removeEventListener()
  • References/JavaScript/React Native/APIs

static removeEventListener(type, handler) Removes the event listener. Do

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

configChecker: CallExpression

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

openURL(url) Try to open the given url with any of the installed apps. You can use

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

LONG: MemberExpression

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

static showShareActionSheetWithOptions(options, failureCallback, successCallback)

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

static stagger(time, animations) Array of animations may run in parallel

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

constructor(value)

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

track(tracking) Typically only used internally.

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

static createInteractionHandle() Notify manager that an interaction has started

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

static addEventListener(eventName, handler)

2025-01-10 15:47:30