import React from 'react';
import { storiesOf } from '@storybook/react-native';
import { SafeAreaView } from 'react-native';
import { Header, HeaderBackground } from '@react-navigation/elements';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import * as HeaderButton from '../../app/containers/HeaderButton';
import { TColors, ThemeContext, TSupportedThemes } from '../../app/theme';
import { colors } from '../../app/lib/constants';
const stories = storiesOf('Header Buttons', module).addDecorator(story => {story()});
interface IHeader {
left?: () => React.ReactElement | null;
right?: () => React.ReactElement;
title?: string;
colors?: TColors;
}
const HeaderExample = ({ left, right, colors, title = '' }: IHeader) => (
);
stories.add('title', () => (
<>
(
)}
right={() => (
)}
/>
(
)}
right={() => (
)}
/>
>
));
stories.add('icons', () => (
<>
(
)}
right={() => (
)}
/>
(
)}
right={() => (
)}
/>
>
));
stories.add('badge', () => (
<>
(
} />
} />
} />
)}
/>
>
));
const ThemeStory = ({ theme }: { theme: TSupportedThemes }) => (
(
)}
right={() => (
} />
)}
colors={colors[theme]}
/>
);
stories.add('themes', () => (
<>
>
));
stories.add('common', () => (
<>
} />
} />
} />
} />
} />
} />
} />
>
));