import React from 'react';
import { View } from 'react-native';
import { Header, HeaderBackground } from '@react-navigation/elements';
import { NavigationContainer } from '@react-navigation/native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import * as HeaderButton from '.';
import { TColors, ThemeContext, TSupportedThemes } from '../../theme';
import { colors } from '../../lib/constants';
interface IHeader {
left?: () => React.ReactElement | null;
right?: () => React.ReactElement;
title?: string;
colors?: TColors;
}
export default {
title: 'HeaderButtons',
decorators: [
(Story: any) => (
)
]
};
const HeaderExample = ({ left, right, colors, title = '' }: IHeader) => (
}
/>
);
export const Title = () => (
<>
(
)}
right={() => (
)}
/>
(
)}
right={() => (
)}
/>
>
);
export const Icons = () => (
<>
(
)}
right={() => (
)}
/>
(
)}
right={() => (
)}
/>
>
);
export const Badge = () => (
<>
(
} />
} />
} />
} />
)}
/>
>
);
const ThemeStory = ({ theme }: { theme: TSupportedThemes }) => (
(
} />
)}
right={() => (
} />
)}
colors={colors[theme]}
/>
);
export const Themes = () => (
<>
>
);
export const Common = () => (
<>
} />
} />
} />
} />
} />
} />
} />
>
);