We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d5040 commit a441bacCopy full SHA for a441bac
src/components/Switch/Switch.tsx
@@ -1,6 +1,7 @@
1
import FormControlLabel from '@material-ui/core/FormControlLabel';
2
import MUISwitch from '@material-ui/core/Switch';
3
import React from 'react';
4
+import { StyleSheet } from 'react-native';
5
import { SwitchProps } from '@bluebase/components';
6
import { objectMapper } from '@bluebase/component-mapper';
7
import { styles } from './styles';
@@ -33,6 +34,7 @@ const map = {
33
34
label: 'label',
35
labelPlacement: 'labelPlacement',
36
name: 'name',
37
+ style: ({ style }: SwitchProps) => StyleSheet.flatten(style),
38
value: 'value',
39
};
40
0 commit comments