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#linear

linear: CallExpression

2016-06-23 04:24:16
Animated#interpolate()

interpolate(config) Interpolates the value before updating the property, e.g. mapping 0-1 to 0-10.

2016-06-23 04:23:27
PanResponder.create()

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

2016-06-23 04:24:49
NetInfo#isConnected

isConnected Available on all platforms. Asynchronously fetch a boolean to determine internet connectivity.

2016-06-23 04:24:47
BackAndroid.exitApp()

static exitApp()

2016-06-23 04:23:43
Animated#removeListener()

removeListener(id)

2016-06-23 04:23:27
IntentAndroid.canOpenURL()

static canOpenURL(url, callback) Determine whether or not an installed app

2016-06-23 04:24:12
AsyncStorage.getItem()

static getItem(key, callback?) Fetches key and passes the result

2016-06-23 04:23:40
PushNotificationIOS.getApplicationIconBadgeNumber()

static getApplicationIconBadgeNumber(callback) Gets the current badge number

2016-06-23 04:25:00
Animated#getTranslateTransform()

getTranslateTransform() Converts {x, y} into a useable translation transform, e.g.

2016-06-23 04:23:26