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 aac4752 commit 4d27127Copy full SHA for 4d27127
src/components/ListSubheader/ListSubheader.tsx
@@ -1,3 +1,11 @@
1
-import MUIListSubheader from '@material-ui/core/ListSubheader';
+import { ListSubheaderProps } from '@bluebase/components';
2
+import MuiListSubheader from '@material-ui/core/ListSubheader';
3
+import { StyleSheet } from 'react-native';
4
+import { componentMapper } from '@bluebase/component-mapper';
5
-export const ListSubheader = MUIListSubheader;
6
+export const ListSubheader = componentMapper<ListSubheaderProps>(MuiListSubheader, {
7
+ children: 'children',
8
+ disableSticky: () => true,
9
+ inset: 'inset',
10
+ style: ({ style }: ListSubheaderProps) => StyleSheet.flatten(style),
11
+});
0 commit comments