there really are only two options - either set up your layout so the player can never get close enough to the edge to prevent a screen shake (if there is no more layout available to bring on the screen, then it can't shake).
or turn on unbounded scrolling, but then you have to make sure your character can't leave the area where your graphics are, and that there is enough background beyond the edge so that when it shakes the screen you don't see the white edges with nothing on it.