Skip to content

Commit

Permalink
Revise the sample in README for ReactNative
Browse files Browse the repository at this point in the history
With this change, the sample works without any errors.
  • Loading branch information
niku committed Nov 13, 2018
1 parent 3c1a3d2 commit 3d052ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/pages/basics/guide-react-native/index.md
Expand Up @@ -73,7 +73,7 @@ import '@storybook/addon-ondevice-notes/register';
The easiest solution is to replace your app entry with:

```js
import './storybook';
export default from './storybook';
```

If you cannot replace your entry point just make sure that the component exported from `./storybook` is displayed
Expand All @@ -86,6 +86,7 @@ RN application, e.g. on a tab or within an admin screen.
Now you can write some stories inside the `storybook/stories/index.js` file, like this:

```js
import React from 'react';
import { storiesOf } from '@storybook/react-native';
import { View, Text } from 'react-native';

Expand Down

1 comment on commit 3d052ce

@laceypm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import

Please sign in to comment.