Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX the customCanvas option #6968

Merged
merged 1 commit into from
Jun 4, 2019
Merged

FIX the customCanvas option #6968

merged 1 commit into from
Jun 4, 2019

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Jun 4, 2019

Issue: #6953 #6493

What I did

I changed the Preview component so it accepts a customCanvas function as prop, and used this over the renderPreview function if passed.

I also fixed the customCanvas component for react-native-server so it hides when the viewmode isn't story.

I also changed the toggleFullscreen api, so if the passed value isn't a boolean, it ignores it. (useful so there's no need to wrap the api in a function to strip out an event-object from an event-handler)

@ndelangen ndelangen added this to the 5.1.0 milestone Jun 4, 2019
@ndelangen ndelangen requested a review from shilman June 4, 2019 11:02
@ndelangen ndelangen self-assigned this Jun 4, 2019
@vercel
Copy link

vercel bot commented Jun 4, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-fix-custompreviewrender.storybook.now.sh

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants