/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions, react/prop-types */ import React from 'react'; import { storiesOf } from '@storybook/react-native'; import { View } from 'react-native'; import * as HeaderButton from '../../app/containers/HeaderButton'; import Header from '../../app/containers/Header'; import { ThemeContext } from '../../app/theme'; const stories = storiesOf('Header Buttons', module); const HeaderExample = ({ left, right }) => (
} headerRight={right} /> ); stories.add('title', () => ( <> ( )} right={() => ( )} /> ( )} right={() => ( )} /> )); stories.add('icons', () => ( <> ( )} right={() => ( )} /> ( )} right={() => ( )} /> )); stories.add('badge', () => ( <> ( } /> } /> } /> )} /> )); const ThemeStory = ({ theme }) => ( ( )} right={() => ( } /> )} /> ); stories.add('themes', () => ( <> )); stories.add('common', () => ( <> ( )} /> ( )} /> ( )} /> ( )} /> ( )} /> ( )} /> ( )} /> ));