storybookjs / native

📱 Storybook for Native: iOS, Android, Flutter
MIT License
184 stars 29 forks source link

Come up with a better solution for the appetize iframe #9

Closed amalik2 closed 3 years ago

amalik2 commented 3 years ago

For deep linking, we want to prevent the iframe from reloading because this requires us to establish a new appetize session. When we render the iframe inside a story, it will get reloaded. The appetize iframe is rendered inside of preview-body.html to work around this issue, but it causes other problems such as the iframe still being visible in tabs other than the canvas one.

@shilman hopefully we can come up with a better solution than rendering in preview-body.html

amalik2 commented 3 years ago

This has been updated since release so that users will no longer have to manually specify the iframe in their preview-body.html for most use cases