Skip to content
26 changes: 17 additions & 9 deletions app/views/MediaAutoDownloadView/ListPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const styles = StyleSheet.create({
flex: 1,
justifyContent: 'center',
alignItems: 'flex-end'
},
pickerItem: {
height: 48

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did you get this from? Is it used in other places?

Asking because there's a chance this is breaking a11y.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup we are using this value in other place like UIKit and notification preference setting

}
});

Expand Down Expand Up @@ -71,16 +74,21 @@ const ListPicker = ({

const getOptions = () => (
<View style={{ backgroundColor: colors.surfaceRoom, marginBottom: insets.bottom }}>
<List.Separator />
{OPTIONS.map(i => (
<List.Radio
onPress={() => {
hideActionSheet();
onChangeValue(i.value);
}}
title={i.label}
value={i.value}
isSelected={option.value === i.value}
/>
<>
<List.Radio
onPress={() => {
hideActionSheet();
onChangeValue(i.value);
}}
title={i.label}
value={i.value}
isSelected={option.value === i.value}
style={styles.pickerItem}
/>
<List.Separator />
</>
))}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
</View>
);
Expand Down