hide alternative ratio buttons when using custom ratio

zio/stable
Piotr P 2024-04-27 14:23:29 +02:00
parent bc956803b8
commit beddddcb57
1 changed files with 34 additions and 30 deletions

View File

@ -117,6 +117,8 @@ export function Component({
maximumValue={3}
containerStyle={styles.slider}
/>
{as === AspectRatio.Custom ? null : (
<>
<TouchableOpacity
onPress={doSetAs(AspectRatio.Wide)}
accessibilityRole="button"
@ -147,6 +149,8 @@ export function Component({
style={as === AspectRatio.Square ? s.blue3 : pal.text}
/>
</TouchableOpacity>
</>
)}
</View>
<View style={styles.btns}>
<TouchableOpacity