react-native-file-viewer icon indicating copy to clipboard operation
react-native-file-viewer copied to clipboard

extra white spacing in header and footer section

Open amitturakSDN opened this issue 2 years ago • 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

amitturakSDN avatar May 10 '23 12:05 amitturakSDN