Skip to content

Commit b47195d

Browse files
committed
fix(IconButton): Flattened style prop
1 parent 3178e76 commit b47195d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/IconButton/IconButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Icon, IconButtonDefaultProps, IconButtonProps } from '@bluebase/compone
22

33
import MUIIconButton from '@material-ui/core/IconButton';
44
import React from 'react';
5+
import { StyleSheet } from 'react-native';
56
import { componentMapper } from '@bluebase/component-mapper';
67

78
export const IconButton = componentMapper<IconButtonProps>(MUIIconButton, {
@@ -13,6 +14,7 @@ export const IconButton = componentMapper<IconButtonProps>(MUIIconButton, {
1314
name: 'name',
1415
onClick: 'onPress',
1516
size: 'size',
17+
style: ({ style }: IconButtonProps) => StyleSheet.flatten(style),
1618
variant: 'variant',
1719
});
1820

0 commit comments

Comments
 (0)