Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React Native Stream Group Chat Tutorial: Render user
// src/screens/Chat.js
renderUser = ({ item }) => {
const online_status = ( ? 'online' : 'offline';
return (
<View style={styles.list_item_body}>
<View style={styles.list_item}>
<View style={styles.inline_contents}>
<View style={[styles.status_indicator, styles[online_status]]}></View>
<Text style={styles.list_item_text}>{}</Text>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.