Commit 8da6d24e by zeven

注释代码,修复闪退

parent 8b721d64
...@@ -3,8 +3,8 @@ import {View, Text, Image, Dimensions} from 'react-native'; ...@@ -3,8 +3,8 @@ import {View, Text, Image, Dimensions} from 'react-native';
import AsyncStorage from '@react-native-community/async-storage'; import AsyncStorage from '@react-native-community/async-storage';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
// import {RtcEngineEvents} from 'react-native-agora/lib/RtcEvents'; // import {RtcEngineEvents} from 'react-native-agora/lib/RtcEvents';
import RtcEngine from 'react-native-agora'; // import RtcEngine from 'react-native-agora';
import {RtcChannel} from 'react-native-agora'; // import {RtcChannel} from 'react-native-agora';
import Touch from '../components/Touch'; import Touch from '../components/Touch';
import PhoneModal from '../components/PhoneModal'; import PhoneModal from '../components/PhoneModal';
import VerifyCodeModal from '../components/VerifyCodeModal'; import VerifyCodeModal from '../components/VerifyCodeModal';
...@@ -294,10 +294,10 @@ class FacePage extends Component { ...@@ -294,10 +294,10 @@ class FacePage extends Component {
this.wechatFace(); this.wechatFace();
} else if (count === 0) { } else if (count === 0) {
// 重力感应归零 // 重力感应归零
clearInterval(this.noTalkCall); // clearInterval(this.noTalkCall);
if (!this.engine) { // if (!this.engine) {
this.engine.leaveChannel(); // this.engine.leaveChannel();
} // }
this.setState({ this.setState({
orderDetailsModal: false, orderDetailsModal: false,
phoneModal: false, phoneModal: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment