Skip to content

Commit

Permalink
Merge pull request #6549 from storybooks/react-native/bugs
Browse files Browse the repository at this point in the history
Fix react-native preview only ui
ndelangen authored Apr 17, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 165a5f6 + d5d785d commit 77eca84
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/react-native/src/preview/components/StoryView/index.tsx
Original file line number Diff line number Diff line change
@@ -77,6 +77,9 @@ export default class StoryView extends Component<Props, State> {
}

renderListening = () => {
if (!this.state) {
return null;
}
const { storyFn, selection } = this.state;
const { kind, story } = selection;

2 changes: 1 addition & 1 deletion app/react-native/src/preview/index.tsx
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ export default class Preview {
channel = new Channel({ async: true });
} else {
const host = getHost(params.host || 'localhost');
const port = params.port ? `:${params.port || 7007}` : '';
const port = `:${params.port || 7007}`;

const query = params.query || '';
const { secured } = params;

0 comments on commit 77eca84

Please sign in to comment.