Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Content to Flex-Start #909

Open
ErionTp opened this issue Jan 23, 2025 · 1 comment
Open

Align Content to Flex-Start #909

ErionTp opened this issue Jan 23, 2025 · 1 comment

Comments

@ErionTp
Copy link

ErionTp commented Jan 23, 2025

How can i align items in the start of the flex. I'm rendering a pdf which is single page. But it shows in the center of the screen, till now i don't see any possibility to handle this. Any suggestion please?

A workaround but bad approach is to set the minHeight of the container to a value like 560

`<View style={{ flex: 1, width: "100%", minHeight: 560 }}>
   <ReactNativePdf
     trustAllCerts={false}
     style={{ flex: 1 }}
     source={source}
     onLoadComplete={(numberOfPages, filePath, size) => {
       console.log("R");
     }}
    />
 </View>`
@Srh07
Copy link

Srh07 commented Feb 20, 2025

I'm running in to the same issue.

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

No branches or pull requests

2 participants