From ecece9bbcdb6fa05a7ded5de2a9f7fa331bb3572 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Mon, 21 Nov 2022 18:33:05 +1300 Subject: [PATCH] Add slight margin to switches for ios I don't know why the android one has margins without me specifying to do so... --- Switch.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Switch.tsx b/Switch.tsx index 74e34e3..3885ded 100644 --- a/Switch.tsx +++ b/Switch.tsx @@ -1,4 +1,4 @@ -import {Pressable} from 'react-native' +import {Platform, Pressable} from 'react-native' import {Switch as PaperSwitch, Text, useTheme} from 'react-native-paper' import {MARGIN} from './constants' @@ -22,6 +22,7 @@ export default function Switch({ flexDirection: 'row', flexWrap: 'wrap', alignItems: 'center', + marginBottom: Platform.OS === 'ios' ? MARGIN : null, }}>