Add slight margin to switches for ios

I don't know why the android one has margins
without me specifying to do so...
This commit is contained in:
Brandon Presley 2022-11-21 18:33:05 +13:00
parent 71a1e69c7b
commit ecece9bbcd
1 changed files with 2 additions and 1 deletions

View File

@ -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,
}}>
<PaperSwitch
color={colors.primary}