Textastic supports the preview function of iOS which allows you to view image, pdf and office files.
Tap an image, pdf or office file to show a preview.
Tap and hold a file and tap on "Open In..." to open the file in another app that can edit or view this type of file.