Textastic supports the preview function of iOS which allows you to view image, pdf and office files.
Tap and hold the file you want to preview until the menu pops up.
Choose Preview to view the file.
Tap on "Open In..." to open the file in another app that can edit or view this type of file.