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,
  },
});
BackAndroid.removeEventListener()

static removeEventListener(eventName, handler)

2016-06-23 04:23:43
LayoutAnimation.create()

static create(duration, type, creationProp) Helper for creating a config

2016-06-23 04:24:17
Animated.multiply()

static multiply(a, b) Creates a new Animated value composed from two Animated

2016-06-23 04:23:34
Clipboard.setString()

static setString(content) Set content of string type. You can use following

2016-06-23 04:23:46
NetInfo.fetch()

static fetch() Returns a promise that resolves with one of the connectivity

2016-06-23 04:24:47
InteractionManager.runAfterInteractions()

static runAfterInteractions(task) Schedule a function to run after all interactions

2016-06-23 04:24:14
Linking#removeEventListener()

removeEventListener(type, handler) Remove a handler by passing the url event type and the handler

2016-06-23 04:24:19
Animated.delay()

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

2016-06-23 04:23:33
Animated.decay()

static decay(value, config) Animates a value from an initial velocity to

2016-06-23 04:23:32
PushNotificationIOS.setApplicationIconBadgeNumber()

static setApplicationIconBadgeNumber(number) Sets the badge number for the

2016-06-23 04:25:02