vinzscam/react-native-file-viewer

extra white spacing in header and footer section

amitturakSDN opened this issue · 0 comments

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