I have an iPhone 8. All of a sudden a few days ago my flashlight stopped working intermittently (it let me turn on the flashlight button, but then it wouldn't shine). Then the rear camera stopped working and just gave me a black screen. I updated to the latest iOS and both started working again, so I thought the problem was fixed. Then it stopped working again after a day. Occasionally (but rarely) it will start working with a reboot of the phone. Tonight I "Reset all settings" and it works again, but we'll see how long it lasts. Does this sound like a software or hardware issue? Why would it work intermittently and start working again after a reboot or software update/reset?