Make sure your pan and oil are preheated over medium-high heat before cooking. Spread the shrimp evenly into the pan and cook for 5-7 minutes, flipping halfway through. They're done when they're pink on the outside and opaque in the center. Make sure to transfer them immediately to a plate once they're done so they don't overcook and become rubbery.