Screen black out
Why my iPhone screen black out while using it.
iPhone 6, iOS 12
Why my iPhone screen black out while using it.
iPhone 6, iOS 12
Hello dhanush2003!
Welcome to and thanks for using the Apple Support Communities!
I understand from your post that your iPhone's screen went black while you were in the middle of using it.
Take a look at this Apple Support article called, Get help with the display on your iPhone, iPad, or iPod touch and follow the steps provided on your iPhone.
I hope this information helps you!
Cheers.
Screen black out