UNPKG

react-native-voise

Version:

react-native-voise provide voice recognition service to app,the voice recognition service come from [baidu voise](http://yuyin.baidu.com/ "Baidu Voise") ###Regist baidu voise account Go to [Baidu Voise](http://yuyin.baidu.com/ "Baidu Voise"),Regist acc

41 lines (33 loc) 776 B
/* @flow */ 'use strict'; var React = require('react-native'); var { StyleSheet, View, TouchableOpacity, Text } = React; var Button = React.createClass({ onPress:function (argument) { this.props.onPress&&this.props.onPress(); }, render: function() { return ( <TouchableOpacity activeOpacity ={0.5} underlayColor="#B5B5B5" onPress={this.props.onPress}> <View style={[styles.button,this.props.style]}> <Text>{this.props.text}</Text> </View> </TouchableOpacity > ); } }); var styles = StyleSheet.create({ button:{ height:50, justifyContent:'center', alignItems: 'center', borderBottomWidth:1, borderBottomColor:'#e5e5e5' } }); module.exports = Button;