hardcoded a width value for range element slider and separated settings in settings preference view into multiple categories

This commit is contained in:
Clément Le Bihan
2023-04-10 23:52:09 +02:00
parent b0dddbe815
commit 047cd054bd
2 changed files with 19 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ export const getElementRangeNode = (
isDisabled={disabled}
onChangeEnd={onChange}
accessibilityLabel={`Slider for ${title}`}
width="200"
>
<Slider.Track>
<Slider.FilledTrack />

View File

@@ -184,6 +184,15 @@ const PreferencesView = ({ navigation }) => {
],
},
},
]}
/>
<ElementList
style={{
marginTop: 20,
width: "90%",
maxWidth: 850,
}}
elements={[
{
type: "toggle",
title: "Color blind mode",
@@ -194,6 +203,15 @@ const PreferencesView = ({ navigation }) => {
},
},
},
]}
/>
<ElementList
style={{
marginTop: 20,
width: "90%",
maxWidth: 850,
}}
elements={[
{
type: "range",
title: "Mic volume",