Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions package/src/components/AttachmentPicker/AttachmentPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,11 @@ export const AttachmentPicker = React.forwardRef(
>
{iOSLimited && <AttachmentPickerIOSSelectMorePhotos />}
<BottomSheetFlatList
contentContainerStyle={[
contentContainerStyle={StyleSheet.flatten([
styles.container,
{ backgroundColor: white },
{ backgroundColor: white, opacity: photoError ? 0 : 1 },
bottomSheetContentContainer,
{ opacity: photoError ? 0 : 1 },
]}
])}
data={selectedPhotos}
keyExtractor={(item) => item.asset.uri}
numColumns={numberOfAttachmentPickerImageColumns ?? 3}
Expand Down
2 changes: 1 addition & 1 deletion package/src/components/Channel/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
localMessage: LocalMessage;
message: StreamMessage;
options?: SendMessageOptions;
}) => Promise<SendMessageAPIResponse>;
}) => Promise<void>;
/**
* Overrides the Stream default update message request (Advanced usage only)
* @param channelId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,11 @@ exports[`MessageStatus should render message status with read by container 1`] =
>
<RCTScrollView
contentContainerStyle={
[
{
"flexGrow": 1,
},
{
"backgroundColor": "#FFFFFF",
},
{},
{
"opacity": 1,
},
]
{
"backgroundColor": "#FFFFFF",
"flexGrow": 1,
"opacity": 1,
}
}
data={[]}
getItem={[Function]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`AttachButton should call handleAttachButtonPress when the button is clicked if passed 1`] = `
<View
Expand Down Expand Up @@ -172,18 +172,11 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
>
<RCTScrollView
contentContainerStyle={
[
{
"flexGrow": 1,
},
{
"backgroundColor": "#FFFFFF",
},
{},
{
"opacity": 1,
},
]
{
"backgroundColor": "#FFFFFF",
"flexGrow": 1,
"opacity": 1,
}
}
data={[]}
getItem={[Function]}
Expand Down Expand Up @@ -382,18 +375,11 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
>
<RCTScrollView
contentContainerStyle={
[
{
"flexGrow": 1,
},
{
"backgroundColor": "#FFFFFF",
},
{},
{
"opacity": 1,
},
]
{
"backgroundColor": "#FFFFFF",
"flexGrow": 1,
"opacity": 1,
}
}
data={[]}
getItem={[Function]}
Expand Down Expand Up @@ -592,18 +578,11 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
>
<RCTScrollView
contentContainerStyle={
[
{
"flexGrow": 1,
},
{
"backgroundColor": "#FFFFFF",
},
{},
{
"opacity": 1,
},
]
{
"backgroundColor": "#FFFFFF",
"flexGrow": 1,
"opacity": 1,
}
}
data={[]}
getItem={[Function]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`SendButton should render a SendButton 1`] = `
<View
Expand Down Expand Up @@ -147,18 +147,11 @@ exports[`SendButton should render a SendButton 1`] = `
>
<RCTScrollView
contentContainerStyle={
[
{
"flexGrow": 1,
},
{
"backgroundColor": "#FFFFFF",
},
{},
{
"opacity": 1,
},
]
{
"backgroundColor": "#FFFFFF",
"flexGrow": 1,
"opacity": 1,
}
}
data={[]}
getItem={[Function]}
Expand Down Expand Up @@ -332,18 +325,11 @@ exports[`SendButton should render a disabled SendButton 1`] = `
>
<RCTScrollView
contentContainerStyle={
[
{
"flexGrow": 1,
},
{
"backgroundColor": "#FFFFFF",
},
{},
{
"opacity": 1,
},
]
{
"backgroundColor": "#FFFFFF",
"flexGrow": 1,
"opacity": 1,
}
}
data={[]}
getItem={[Function]}
Expand Down
10 changes: 5 additions & 5 deletions package/src/components/Poll/components/PollOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,24 +181,24 @@ export const VoteButton = ({ onPress, option }: PollVoteButtonProps) => {
toggleVote();
}, [message, onPress, poll, toggleVote]);

const hasVote = !!ownVotesByOptionId[option.id];

return ownCapabilities.castPollVote && !isClosed ? (
<Pressable
onPress={onPressHandler}
style={({ pressed }) => [
{ opacity: pressed ? 0.5 : 1 },
styles.voteContainer,
{
backgroundColor: ownVotesByOptionId[option.id]
? voteButtonActive || accent_dark_blue
: 'transparent',
borderColor: ownVotesByOptionId[option.id]
backgroundColor: hasVote ? voteButtonActive || accent_dark_blue : 'transparent',
borderColor: hasVote
? voteButtonActive || accent_dark_blue
: voteButtonInactive || disabled,
},
voteButtonContainer,
]}
>
{ownVotesByOptionId[option.id] ? <Check height={15} pathFill='white' width={20} /> : null}
{hasVote ? <Check height={15} pathFill='white' width={20} /> : null}
</Pressable>
) : null;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2439,18 +2439,11 @@ exports[`Thread should match thread snapshot 1`] = `
>
<RCTScrollView
contentContainerStyle={
[
{
"flexGrow": 1,
},
{
"backgroundColor": "#FFFFFF",
},
{},
{
"opacity": 1,
},
]
{
"backgroundColor": "#FFFFFF",
"flexGrow": 1,
"opacity": 1,
}
}
data={[]}
getItem={[Function]}
Expand Down
Loading