I am working on a social network app and I am currently trying to insert nude.js JavaScript lib into one of my pages to scan the image the user is going to upload to check if it contains nudity. The problem is, I am not sure how to reference a JS script into the typescript class of a ionic page, and trying to get img tag element (needed to pass as parameter at nude.load() method to be scanned) at html page using @ViewChild always returns me null or undefined.
Help!