2022-09-24 01:57:51 +00:00
|
|
|
import React, {useContext} from 'react';
|
2022-07-17 01:45:31 +00:00
|
|
|
import {Switch} from 'react-native-paper';
|
2022-09-24 01:57:51 +00:00
|
|
|
import {CustomTheme} from './App';
|
2022-09-16 09:07:02 +00:00
|
|
|
import {MARGIN} from './constants';
|
2022-07-17 01:45:31 +00:00
|
|
|
|
|
|
|
export default function MassiveSwitch(
|
|
|
|
props: Partial<React.ComponentProps<typeof Switch>>,
|
|
|
|
) {
|
2022-09-24 01:57:51 +00:00
|
|
|
const {color} = useContext(CustomTheme);
|
2022-07-17 01:45:31 +00:00
|
|
|
|
2022-09-24 01:57:51 +00:00
|
|
|
return <Switch color={color} style={{marginRight: MARGIN}} {...props} />;
|
2022-07-17 01:45:31 +00:00
|
|
|
}
|