Skip to content

Commit 46b59c3

Browse files
authored
chore: pass contentContainerStyle to MessageFlashList (#3385)
## 🎯 Goal Port of [this PR](#3348) to the V8 release branch. ## 🛠 Implementation details <!-- Provide a description of the implementation --> ## 🎨 UI Changes <!-- Add relevant screenshots --> <details> <summary>iOS</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> <details> <summary>Android</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> ## 🧪 Testing <!-- Explain how this change can be tested (or why it can't be tested) --> ## ☑️ Checklist - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required) - [ ] PR targets the `develop` branch - [ ] Documentation is updated - [ ] New code is tested in main example apps, including all possible scenarios - [ ] SampleApp iOS and Android - [ ] Expo iOS and Android
1 parent 68f4526 commit 46b59c3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

package/src/components/MessageList/MessageFlashList.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,12 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
10171017
);
10181018

10191019
const flatListContentContainerStyle = useMemo(
1020-
() => [styles.contentContainer, contentContainer],
1021-
[contentContainer],
1020+
() => [
1021+
styles.contentContainer,
1022+
contentContainer,
1023+
additionalFlashListProps?.contentContainerStyle,
1024+
],
1025+
[additionalFlashListProps?.contentContainerStyle, contentContainer],
10221026
);
10231027

10241028
const currentListHeightRef = useRef<number | undefined>(undefined);

0 commit comments

Comments
 (0)