iPhone flashlight when taking photo
There is no way to have a flashlight on while taking a photo unless probably jailbroken.

The easiest solution is to just turn on flash in the camera app (tap the little lightning symbol --> tap on).