To hide texts on your iPhone 5, just follow the easy steps below:
From the iPhone home screen, open the Settings app.
Once inside the app, scroll down and select Messages.
Now if you receive a text, only the sender's name will appear on the screen. To see the full text contents now
you can either slide the icon or go directly to the Messages app.