Joist hangers should almost always be nailed in place with sherardized twist nails* with one nail in each and every hole. It is normally not permissable to use screws. Drywall screws, in particular, are unsuitable as they are thin, very hard and brittle. If a BCO sees screws they will often simply red card the installation on safety grounds and refuse to sign it off
* = AFAIK the exception being some specialist hangers produced by Simpson Strongtie which must be used with special screws supplied by Simpsons and never used with standard wood screws.when these screws are usedthey are not pre-piloted