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

Empty file.filepath and not generating on the set directory #282

Closed
ginxx009 opened this issue Aug 17, 2022 · 0 comments
Closed

Empty file.filepath and not generating on the set directory #282

ginxx009 opened this issue Aug 17, 2022 · 0 comments

Comments

@ginxx009
Copy link

ginxx009 commented Aug 17, 2022

if(granted === PermissionsAndroid.RESULTS.GRANTED) {
          let data = {
            html: '<h1>PDF TEST</h1>',
            fileName: 'test',
            directory: 'Documents',
          };
      
          let file = await RNHTMLtoPDF.convert(data)
          alert('Has been downloaded to : ', file.filePath);
        }

"react-native-html-to-pdf": "^0.12.0",
"react": "17.0.2",
"react-native": "^0.67.4",

multiDexEnabled true
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30

What I tried so far is this link: #261 (comment)
but still no luck

Though I am using react-native 67 still used react-native link react-native-html-to-pdf

Can someone point out why it is not generating any pdf file on the document directory ?

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