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
  • Loading branch information
ndelangen authored Apr 17, 2019
2 parents 165a5f6 + d5d785d commit 77eca84
Show file tree
Hide file tree
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
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion app/react-native/src/preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77eca84

Please sign in to comment.