Skip to content

Commit

Permalink
Add viewport optional props
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnstn committed Apr 10, 2023
1 parent 641949a commit 6c53b2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/sandbox/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function Sandbox( {
title = '',
type,
url,
viewportProps = '',
} ) {
const colorScheme = usePreferredColorScheme();
const ref = useRef();
Expand Down Expand Up @@ -215,7 +216,7 @@ function Sandbox( {
<title>{ title }</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1"
content={ `width=device-width, initial-scale=1, ${ viewportProps }` }
></meta>
<style dangerouslySetInnerHTML={ { __html: style } } />
{ styles.map( ( rules, i ) => (
Expand Down

0 comments on commit 6c53b2e

Please sign in to comment.