Skip to content

feature(website): add per-platform device frame options when embedding snacks#425

Merged
byCedric merged 9 commits into
mainfrom
@bycedric/website/add-device-frame-for-embeds
May 17, 2023
Merged

feature(website): add per-platform device frame options when embedding snacks#425
byCedric merged 9 commits into
mainfrom
@bycedric/website/add-device-frame-for-embeds

Conversation

@byCedric

@byCedric byCedric commented May 17, 2023

Copy link
Copy Markdown
Member

Why

Fixes #422

It seems that the react native docs wasn't aware of our upgrade to newer device frames. We did this to avoid an outdated look when using Appetize.

Allowing everyone who embed Snacks to use a fixed device frame would avoid this in the future.

How

  • Added device-frame-android and device-frame-ios options
  • Added option to disable device frames fully

Test Plan

Going to deploy this to staging, and validate through the react native docs. See the updated docs on how to use it.

@byCedric
byCedric requested a review from Kudo May 17, 2023 12:45
@byCedric
byCedric temporarily deployed to website-staging May 17, 2023 12:55 — with GitHub Actions Inactive
@byCedric
byCedric temporarily deployed to website-staging May 17, 2023 13:32 — with GitHub Actions Inactive
@byCedric
byCedric force-pushed the @bycedric/website/add-device-frame-for-embeds branch from c9641a4 to 7cd88b9 Compare May 17, 2023 14:43
@byCedric
byCedric temporarily deployed to website-staging May 17, 2023 14:48 — with GitHub Actions Inactive
@byCedric
byCedric merged commit ce1bfe5 into main May 17, 2023
@byCedric
byCedric deleted the @bycedric/website/add-device-frame-for-embeds branch May 17, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embedded Snack Cuts off Screen on Android/iOS

2 participants