国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

iOS 震動(dòng)

2019-08-14 14:24 更新

震動(dòng) API 是在 VibrationIOS.vibrate() 里顯示的。在 iOS 上,調(diào)用這個(gè)函數(shù)可以出發(fā)一秒鐘的振動(dòng)。振動(dòng)是異步的,所以這個(gè)方法會(huì)立即返回。

這對(duì)不支持振動(dòng)的設(shè)備是沒(méi)有任何影響的,例如,iOS 模擬器。

目前是不支持振動(dòng)模式的。

方法

static vibrate()

例子

Edit on GitHub

'use strict';var React = require('react-native');var {
  StyleSheet,
  View,
  Text,
  TouchableHighlight,
  VibrationIOS
} = React;
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,
  },
});


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)