Issue with integrating message center for react native app

I have integrated the message center in my react native app using the official documentaion (https://docs.airship.com/platform/react-native/message-center/) and sample source code. While deploying and testing, I do see dates but the values like "message,id, message.title" etc doesn't populate in the code and hence doesn't show on the screen. Because of this the "navigation.navigate" function is also coming as undefined.

Code snippet:

function Item( message:any, navigation:any ) {
return (
<TouchableHighlight
activeOpacity={0.6}
underlayColor="#DDDDDD"
onPress={() =>
navigation.navigate(CONSTANTS.MESSAGE_DETAILS, { messageId:message.id, title:message.title })
}>
<Viewstyle={styles.item}>
<Textstyle={styles.itemTitle}>{message.title}</Text>
<Textstyle={styles.itemSubtitle}>{Moment(message.sentDate).format('MM/DD/YYYY')}</Text>
<Viewstyle={styles.itemSeparator}></View>
</View>
</TouchableHighlight>
);
}


Is there any solution to it, as I have added the listeners, so I should be able to fetch those details. also in the airship portal, when I see the details of the message, it shows "0% sends to the message center"

Didn't find what you were looking for?

New post

Comments

0 comments

Please sign in to leave a comment.