Skip to content

Instantly share code, notes, and snippets.

@xiongemi
Created April 4, 2022 05:43
Show Gist options
  • Save xiongemi/1c3d347fd336c4f9eecc7ea53927d88c to your computer and use it in GitHub Desktop.
Save xiongemi/1c3d347fd336c4f9eecc7ea53927d88c to your computer and use it in GitHub Desktop.
story with mock store decorator
import { storiesOf } from '@storybook/react-native';
import { mockPeopleEntity } from '@studio-ghibli-search-engine/models';
import React from 'react';
import { NavigationDecorator, StoreDecorator } from '../../../storybook/mocks';
import PeopleListItem from './people-list-item';
storiesOf('PeopleListItem', module)
.addDecorator(StoreDecorator)
.addDecorator(NavigationDecorator)
.add('Primary', () => <PeopleListItem people={mockPeopleEntity} />);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment