I'm currently writing an Android React Native app on VS Code using create-react-native-app and I'm trying to install some libraries to use, namely react-native-html-to-pdf.
In the documentation, after the npm install, it asks me to run a link command which returns an error saying
"Cannot read property 'pbxprojPath' of null".
Within my code, the import line import { RNHTMLtoPDF } from 'react-native-html-to-pdf'
returns an error saying that the react-native-html-to-pdf module cannot be found.
How can I manually link this library with VS Code? I tried following the manual installation in the documentation but I believe that the Gradle files don't exist. If I try running the sample code provided to me, I get
Cannot read property 'convert' of undefined
as an error, so I presume that the library is not correctly linked.