Created
April 4, 2022 05:43
-
-
Save xiongemi/1c3d347fd336c4f9eecc7ea53927d88c to your computer and use it in GitHub Desktop.
story with mock store decorator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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