【发布时间】:2021-08-12 18:28:30
【问题描述】:
我正在尝试重定向到 CallScreen,但未调用 redirect() 函数。我的代码在https://pastebin.com/FKLfGxhR,该函数应该被调用
options={{
'Choose From Library': () => {
this.redirect();
},
}}
这里。
函数在类中,并且是
redirect = () => {
this.props.navigation.navigate('CallScreen')
console.log('test')
}
【问题讨论】:
标签: javascript react-native class react-native-gifted-chat