Skip to content

Commit a441bac

Browse files
committed
fix(Switch): Flattened style prop
1 parent 50d5040 commit a441bac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Switch/Switch.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import FormControlLabel from '@material-ui/core/FormControlLabel';
22
import MUISwitch from '@material-ui/core/Switch';
33
import React from 'react';
4+
import { StyleSheet } from 'react-native';
45
import { SwitchProps } from '@bluebase/components';
56
import { objectMapper } from '@bluebase/component-mapper';
67
import { styles } from './styles';
@@ -33,6 +34,7 @@ const map = {
3334
label: 'label',
3435
labelPlacement: 'labelPlacement',
3536
name: 'name',
37+
style: ({ style }: SwitchProps) => StyleSheet.flatten(style),
3638
value: 'value',
3739
};
3840

0 commit comments

Comments
 (0)