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

extra white spacing in header and footer section #144

Open
amitturakSDN opened this issue May 10, 2023 · 0 comments
Open

extra white spacing in header and footer section #144

amitturakSDN opened this issue May 10, 2023 · 0 comments

Comments

@amitturakSDN
Copy link

I am using following code to view pdf from device it is working fine but ,it is taking extra white space at header and footer section , I want to remove that extra space can you please help me ?

const handlePress = async (path) => {
const granted = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,
);
if (granted === PermissionsAndroid.RESULTS.GRANTED) {
// Custom logic before opening the file
FileViewer.open(path, { showOpenWithDialog: true, })
.then(() => {
// Custom logic after opening the file
})
.catch((err) => {
console.log('err: ', err);
});
} else {
console.log('Permission denied');
}

};
Screenshot 2023-05-10 at 5 53 07 PM

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

1 participant