Skip to content

Instantly share code, notes, and snippets.

@xiongemi
Last active April 4, 2022 05:02
Show Gist options
  • Save xiongemi/c5d8a9f64941ce32384ee6b1aecf9de4 to your computer and use it in GitHub Desktop.
Save xiongemi/c5d8a9f64941ce32384ee6b1aecf9de4 to your computer and use it in GitHub Desktop.
story of react native component that uses NavigationDecorator
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