Massive/MassiveSwitch.tsx

13 lines
376 B
TypeScript
Raw Normal View History

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