Feat: create - support simulated Android device preview #45

Merged
FatttSnake merged 1 commits from FatttSnake into dev 2024-03-22 17:41:46 +08:00
2 changed files with 2 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
.preview {
display: flex;
position: relative;
justify-content: center;
align-items: center;

View File

@@ -379,6 +379,7 @@ const Create = () => {
<Playground.Output.Preview.Render
iframeKey={previewTemplate}
compiledCode={compiledCode}
mobileMode={formValues.platform === 'ANDROID'}
/>
) : (
<span className={'no-preview'}></span>