hide alternative ratio buttons when using custom ratio
This commit is contained in:
@@ -117,6 +117,8 @@ export function Component({
|
|||||||
maximumValue={3}
|
maximumValue={3}
|
||||||
containerStyle={styles.slider}
|
containerStyle={styles.slider}
|
||||||
/>
|
/>
|
||||||
|
{as === AspectRatio.Custom ? null : (
|
||||||
|
<>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={doSetAs(AspectRatio.Wide)}
|
onPress={doSetAs(AspectRatio.Wide)}
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
@@ -147,6 +149,8 @@ export function Component({
|
|||||||
style={as === AspectRatio.Square ? s.blue3 : pal.text}
|
style={as === AspectRatio.Square ? s.blue3 : pal.text}
|
||||||
/>
|
/>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.btns}>
|
<View style={styles.btns}>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
|
|||||||
Reference in New Issue
Block a user