i have an array of components ,i need to first preview them components in cards so as one can choose a particular card then the component will take its original size. but for preview i need smaller sized components . how to do so please help i have tried this
{comp.map((C,index) => (
<Paper style={{ width: "30%" ,margin:"5%"}} elevation={20}>
{/* <Frame style={{width:"100%"}} ref={frameRef} id="test" onload={resizeFrame()} class="iframe" frameborder={"0"}> */}
<C style={{height:"100vh",width:"100vw"}} index={index} onPress={()=>hideSidebar(index)} previewMode={true}/>
{/* </Frame> */}
</Paper>)
)}