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 (34 loc) • 731 B
JavaScript
/* @flow */
;
var React = require('react-native');
var Button=require('./Button');
var {
StyleSheet,
View,
NativeAppEventEmitter
} = React;
var Component = React.createClass({
onBack:function (argument) {
NativeAppEventEmitter.emit('back');
},
render: function() {
return (
<View style={[styles.container,this.props.style]}>
<Button text={"返回"} style={styles.button} onPress={this.onBack}/>
</View>
);
}
});
var styles = StyleSheet.create({
container:{
height:50,
flexDirection:'row',
justifyContent:'flex-start',
borderBottomWidth:1,
borderBottomColor:'#e5e5e5'
},
button:{
width:80
}
});
module.exports = Component;