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#getAlert()

getAlert() Gets the notification's main message from the aps object

2016-06-23 04:24:57
CameraRoll.saveImageWithTag()

static saveImageWithTag(tag) Saves the image to the camera roll / gallery

2016-06-23 04:23:45
Animated#setOffset()

setOffset(offset) Sets an offset that is applied on top of whatever value is set, whether via setValue

2016-06-23 04:23:27
TimePickerAndroid.timeSetAction()

static timeSetAction() A time has been selected.

2016-06-23 04:25:49
IntentAndroid.openURL()

static openURL(url) Starts a corresponding external activity for the given

2016-06-23 04:24:12
Animated#getLayout()

getLayout() Converts {x, y} into {left, top} for use in style, e.g.

2016-06-23 04:23:26
Animated.sequence()

static sequence(animations) Starts an array of animations in order, waiting

2016-06-23 04:23:35
Animated.event()

static event(argMapping, config?) Takes an array of mappings and extracts

2016-06-23 04:23:34
StyleSheet#hairlineWidth

hairlineWidth: CallExpression This is defined as the width of a thin line on the platform. It can be used

2016-06-23 04:25:30
ToastAndroid.show()

static show(message, duration)

2016-06-23 04:25:50