Last active
April 4, 2022 05:02
-
-
Save xiongemi/c5d8a9f64941ce32384ee6b1aecf9de4 to your computer and use it in GitHub Desktop.
story of react native component that uses NavigationDecorator
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 { mockFilmEntity } from '@studio-ghibli-search-engine/models'; | |
import React from 'react'; | |
import { NavigationDecorator } from '../../../storybook/mocks/navigation'; | |
import FilmListItem from './film-list-item'; | |
storiesOf('FilmListItem', module) | |
.addDecorator(NavigationDecorator) | |
.add('Primary', () => <FilmListItem film={mockFilmEntity} />); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment