React-native:Undefined不是一个对象…当使用'react-native-tts'

我想使用文本来发言我的反应原生的应用程序,所以我导入了反原生tts

import React from 'react'; import { StyleSheet, View, TouchableHighlight, Image } from 'react-native'; import Tts from 'react-native-tts'; export default class App extends React.Component { constructor(props) { super(props); this._pressConfig = this._pressConfig.bind(this); this._pressPlay = this._pressPlay.bind(this); } _pressConfig() { console.log("pressed"); } _pressPlay() { Tts.speak("Hello world"); } render() { return ( <View style={styles.container}> <View style={styles.navigation}> <TouchableHighlight onPress={this._pressConfig}> <Image source={require('./App/img/img_hamburger.png')} style={{ width: 30, height: 30 }} /> </TouchableHighlight> </View> <View style={styles.content}> <TouchableHighlight onPress={this._pressPlay}> <Image source={require('./App/img/img_play.png')} style={{ width: 100, height: 100 }} /> </TouchableHighlight> </View> </View> ); } } 

当点击播放button时出现此错误: 在这里输入图像说明

我已经尝试安装,更新,干净…每个NPM包,但没有任何帮助。 任何人都可以帮我解决我的问题吗? 我对React Native是全新的,所以我非常感谢任何build议。