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:
parent
71a1e69c7b
commit
ecece9bbcd
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user