[英]Twilio call is not working in iOS and Android in react-native
i am trying to use twilio client in react native app. 我正在尝试使用twilio客户端反应本机应用程序。 here is the link Twilio repo after done all setup with react native twilio .when i am calling a number getting issue .
这里是完成所有设置与反应原生twilio后链接Twilio repo 。当我呼叫一个数字问题。 i used all steps give in this link .
我使用了此链接中的所有步骤。
[tid:com.facebook.react.JavaScript] handler is not a function. [tid:com.facebook.react.JavaScript]处理程序不是函数。 (In 'handler(rtn)', 'handler' is undefined) 2016-09-27 11:00:57.857 [fatal]
(在'handler(rtn)'中,'handler'未定义)2016-09-27 11:00:57.857 [致命]
[tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: handler is not a function. [tid:com.facebook.react.RCTExceptionsManagerQueue]未处理的JS异常:处理程序不是函数。 (In 'handler(rtn)', 'handler' is undefined).
(在'handler(rtn)'中,'handler'未定义)。 code is breaking in twilio app in index.js
代码在index.js中的twilio app中破解
addEventListener(type, handler) {
_eventHandlers[type].set(handler, NativeAppEventEmitter.addListener(
type, rtn => {
handler(rtn);
}
));
},
not able to get where is the issue . 无法找到问题所在。 i tried to implement in my native base code its working fine so my server setup does not have any issue .but don't how to solve in react native .
我试图在我的本机基本代码中实现它的工作正常,所以我的服务器设置没有任何问题。但不要如何解决反应原生。 any one have any idea about the issue.
任何人都对这个问题有所了解。
I have fixed that issue .issue is not in twilio npm . 我已经解决了这个问题。不是twilio npm。 issue about the setup iOS react native project.
关于设置iOS反应原生项目的问题。 now i have used this steps 1-in
node_modules,react-native-twilio/ios and add RCTTwilio.xcodeproj to
your project. 现在我已经在
node_modules,react-native-twilio/ios and add RCTTwilio.xcodeproj to
使用了这个步骤1 node_modules,react-native-twilio/ios and add RCTTwilio.xcodeproj to
你的项目中。
2- Add libRCTTwilio.a to Build Phases -> Link Binary With Libraries
I have done mistake to call Twilio.addEventListener (), its need Twilio.addEventListener ('type of event', 'call a event hadler')
, 我错误地调用了Twilio.addEventListener(),它需要
Twilio.addEventListener ('type of event', 'call a event hadler')
,
for example 例如
Twilio.addEventListener('deviceDidReceiveIncoming', this._deviceDidReceiveIncoming);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.