# Livestream MessageList

There are two common scenarios in live-stream applications.

<table>
  <tr>
  <td align='center' width='33%'>

![LivestreamExample1](https://raw.githubusercontent.com/GetStream/stream-chat-react-native/main/screenshots/cookbook/LivestreamExample1.png)

  </td>
  <td align='center' width='33%'>

![LivestreamExample2](https://raw.githubusercontent.com/GetStream/stream-chat-react-native/main/screenshots/cookbook/LivestreamExample2.png)

  </td>
  </tr>
  <tr></tr>
  <tr>
  <td align='center'>
      <strong>Faded chat with video as background</strong>
  </td>
  <td align='center'>
      <strong>Split screen between video and chat</strong>
  </td>
  </tr>
</table>

Here is how you can implement these two use cases:

## Faded chat with video as background

```jsx
import React from "react";
import { SafeAreaView, StyleSheet, View } from "react-native";

// Make sure you have installed following two dependencies
import MaskedView from "@react-native-community/masked-view";
import LinearGradient from "react-native-linear-gradient";

import { Chat, Channel, MessageList } from "stream-chat-react-native";

const theme = {
  messageList: {
    container: {
      backgroundColor: "transperant",
    },
  },
  messageSimple: {
    content: {
      textContainer: {
        backgroundColor: "white",
      },
    },
  },
};

// When you render your chat screen
<SafeAreaView style={{ flex: 1 }}>
  {/* For the sake of example, we are using image as background, you can replace it with your Video component. */}
  <Image
    source={{
      uri: "https://i.pinimg.com/474x/59/a2/aa/59a2aae82b34bace9dc4d4df90457a3b.jpg",
    }}
    style={{ height: "100%", width: "100%" }}
  />

  <View style={[{ position: "absolute" }, StyleSheet.absoluteFillObject]}>
    <Chat client={chatClient} style={theme}>
      <Channel
        channel={channel}
        keyboardVerticalOffset={headerHeight}
        thread={thread}
      >
        <View style={{ flex: 1 }} />
        <View style={{ flex: 2 }}>
          <MaskedView
            style={{ flex: 1 }}
            maskElement={
              <LinearGradient
                colors={["rgba(0,0,0,0)", "rgba(0,0,0,1)"]}
                style={{
                  flex: 1,
                }}
                start={{ x: 0, y: 0 }}
                end={{ x: 0, y: 1 }}
                locations={[0, 0.5]}
              />
            }
          >
            <MessageList />
          </MaskedView>
        </View>
        <MessageInput />
      </Channel>
    </Chat>
  </View>
</SafeAreaView>;
```

## Split screen between video and chat

```jsx
import React from 'react';
import { SafeAreaView, StyleSheet, View } from 'react-native';

import { Chat, Channel, MessageList } from 'stream-chat-react-native';

// When you render your chat screen
<SafeAreaView style={{ flex: 1 }}>
  <View style={[{ position: 'absolute' }, StyleSheet.absoluteFillObject]}>
      <Chat client={chatClient} i18nInstance={streami18n}>
        <Channel
          channel={channel}
          keyboardVerticalOffset={headerHeight}
          thread={thread}
        >
          <View style={{ flex: 1 }}>
            <Image source={{
              uri: 'https://i.ibb.co/rfx5PCr/Screenshot-2021-02-24-at-14-20-57.png'
            }} style={{ height: '100%', width: '100%'}} resizeMode={'cover'} />
          </View>
          <MessageList<
            LocalAttachmentType,
            LocalChannelType,
            LocalCommandType,
            LocalEventType,
            LocalMessageType,
            LocalResponseType,
            LocalUserType
          >
            onThreadSelect={(thread) => {
              setThread(thread);
              navigation.navigate('Thread');
            }}
          />
          <MessageInput />
        </Channel>
      </Chat>
  </View>
</SafeAreaView>
```

---

This page was last updated at 2025-08-15T14:16:11.327Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v3/guides/livestream-messagelist/](https://getstream.io/chat/docs/sdk/react-native/v3/guides/livestream-messagelist/).