Chosen Solution

I recently got the Galaxy Z Flip as a gift and tried out the camera but it didn’t work. I installed a different camera app instead of the one originally provided for the phone. Found out that only the front camera works which suck, missing out on some cool features. If there are any answers I would really appreciate it.

It should be under warranty take it to a Samsung repair shop and have them take a look. I would back it up first.