react-native-file-viewer
react-native-file-viewer copied to clipboard
extra white spacing in header and footer section
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'); }
};