How to use the @storybook/react-native/dist/index.storiesOf function in @storybook/react-native

To help you get started, we’ve selected a few @storybook/react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github syl20lego / rn-skeleton / test / stories / welcome.stories.js View on Github external
import React from 'react';
import {linkTo} from "@storybook/addon-links/dist/index";
import {storiesOf} from "@storybook/react-native/dist/index";

import Welcome from './helpers/welcome';

storiesOf('Welcome', module).add('to Storybook', () => );
github syl20lego / rn-skeleton / test / stories / screens / info.screen.stories.js View on Github external
import React from 'react';
import {action} from "@storybook/addon-actions/dist/index";
import {storiesOf} from "@storybook/react-native/dist/index";

import InfoScreen from '../../../src/screens/info.screen'

storiesOf('Screens/Info Screen', module)
    .add('show settings button', () => (
        
    ));
github syl20lego / rn-skeleton / test / stories / screens / details.screen.stories.js View on Github external
import React from 'react';
import {storiesOf} from "@storybook/react-native/dist/index";

import DetailsScreen from '../../../src/screens/details.screen'

storiesOf('Screens/Details Screen', module)
    .add('default', () => (
        
    ));
github syl20lego / rn-skeleton / test / stories / screens / home.screen.stories.js View on Github external
import React from 'react';
import {action} from "@storybook/addon-actions/dist/index";
import {storiesOf} from "@storybook/react-native/dist/index";

import HomeScreen from '../../../src/screens/home.screen/home.screen'

storiesOf('Screens/Home Screen', module)
    .add('show loading state', () => (
        
    ))
    .add('show empty state', () => (
github syl20lego / rn-skeleton / test / stories / screens / settings.screen.stories.js View on Github external
import React from 'react';
import {storiesOf} from "@storybook/react-native/dist/index";

import SettingsScreen from '../../../src/screens/settings.screen'

storiesOf('Screens/Settings Screen', module)
    .add('default', () => (
        
    ));
github syl20lego / rn-skeleton / test / stories / components / button.stories.js View on Github external
import React from 'react';
import {action} from "@storybook/addon-actions/dist/index";
import {storiesOf} from "@storybook/react-native/dist/index";
import CenterView from '../helpers/centerview';

import Button from '../../../src/components/button';


storiesOf('Components/Button', module)
    .addDecorator(getStory => {getStory()})
    .add('with text', () => (
        <button title="stories">
        </button>
    ));