Skip to content

Commit c4089d0

Browse files
authored
feat: add attachment picker handle theme (#3317)
1 parent 3eb3bef commit c4089d0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ type Props = {
2424
export const AttachmentPickerBottomSheetHandle = ({ animatedIndex }: Props) => {
2525
const {
2626
theme: {
27+
attachmentPicker: {
28+
handle: { container, indicator },
29+
},
2730
colors: { black, white },
2831
},
2932
} = useTheme();
@@ -34,8 +37,8 @@ export const AttachmentPickerBottomSheetHandle = ({ animatedIndex }: Props) => {
3437
}));
3538

3639
return (
37-
<Animated.View style={[styles.container, { backgroundColor: white }, style]}>
38-
<View style={[styles.handle, { backgroundColor: `${black}1A` }]} />
40+
<Animated.View style={[styles.container, { backgroundColor: white }, style, container]}>
41+
<View style={[styles.handle, { backgroundColor: `${black}1A` }, indicator]} />
3942
{/* ^ 1A = 10% opacity */}
4043
</Animated.View>
4144
);

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ export type Theme = {
105105
imageOverlaySelectedComponent: {
106106
check: ViewStyle;
107107
};
108+
handle: {
109+
container: ViewStyle;
110+
indicator: ViewStyle;
111+
};
108112
};
109113
attachmentSelectionBar: {
110114
container: ViewStyle;
@@ -896,6 +900,10 @@ export const defaultTheme: Theme = {
896900
errorButtonText: {},
897901
errorContainer: {},
898902
errorText: {},
903+
handle: {
904+
container: {},
905+
indicator: {},
906+
},
899907
image: {},
900908
imageOverlay: {},
901909
imageOverlaySelectedComponent: {

0 commit comments

Comments
 (0)