Both are grammatically correct. If you are in a conversation and say " As did I" it would be seen to be unusual in the text. If using in an essay for school it would be appropriate, probably even recognized for using it many don't write it like that.