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

static setDeadline(deadline) A positive number will use setTimeout to schedule

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

static registerConfig(config)

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

static createAnimatedComponent(Component) Make any React component Animatable

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

setHidden(hidden, animation?)

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

isConnectionExpensive Available on Android. Detect if the current active connection is metered or not. A network is classified as metered when

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

static showActionSheetWithOptions(options, callback) Display an iOS action

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

ValueXY: AnimatedValueXY 2D value class for driving 2D animations, such as pan gestures.

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

static delay(time) Starts an animation after the given delay.

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

easeInEaseOut: CallExpression

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

constructor()

2025-01-10 15:47:30