"react-native": "0.59.9"
"react": "16.8.0"
"aurora-imui-react-native": "^0.14.0"
"jmessage-react-plugin": "^3.2.0"
登录成功(JMessage.login)=>创建会话成功(JMessage.createConversation)
问题1:使用appendMessages应用崩溃
代码片段:
import JMessage from 'jmessage-react-plugin';
import IMUI from 'aurora-imui-react-native';
const AuroraIController = IMUI.AuroraIMUIController;
var messages2 = [{
msgId: "1",
status: "send_going",
msgType: "text",
text: text,
isOutgoing: true,
fromUser: {
userId: "1",
displayName: "Ken",
avatarPath: "ironman"
},
timeString: "10:00"
}];
AuroraIController.appendMessages(messages2)
报错信息(AS中logcat获得):
问题2:点击相册/拍照/语音按钮没React
打开APP第一次点,有提示获取权限,点了确认权限后,再点击就没有React了。会触发回调函数。
AndroidMainifest.xml存在以下权限配置
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera"/>
暂无答案!
目前还没有任何答案,快来回答吧!