aurora-imui AuroraIMUIController.appendMessages插入消息不显示

jmessage
标签: #<Tag:0x00007f214de65918>

(老王IM) #1

ios
“aurora-imui-react-native”: “^0.9.36”,

没报错,但MessageList无任何显示


(HuminiOS) #2

完整代码,还有具体参数列一下


(老王IM) #3
let createMessages = msgArr.map(item => this._messageIntegrate(item));

this._imAppend(createMessages);

_createTextMessages = (text) => {
        let id = moment().valueOf() + '';
        let fromUser = this.props.sendUser;
        // let timeString = this._setDate(moment().valueOf());
        let timeString = moment().valueOf();
        return {
            fromUser: fromUser,
            msgId: id,
            status: 'send_going',
            msgType: "text",
            isOutgoing: true,
            timeString: this._mergeTime(timeString),
            text: text
        }
    }

_imAppend = (dataArr) => {
        AuroraIMUIController.appendMessages(dataArr);
    }

<TouchableHighlight style={styles.message} onPress={()=>{Keyboard.dismiss()}}>
                <MessageList 
                onTouchMsgList={msg => this._onTouchMsgList(msg)}
                onAvatarClick={msg => this._onAvatarClick(msg)}
                onMsgClick={msg => this._onMsgClick(msg)}
                isAllowPullToRefresh={false}/>
            </TouchableHighlight>

Android端正常的,ios什么都不显示


(HuminiOS) #4

先升级都最新版本看还有没问题 aurora-imui-react-native@0.10.8。


(老王IM) #5

不好意思 是同事偷偷改了代码导致的问题。麻烦删掉此贴