An explanation of gravity as a geometic phenomonon is the central point of General Relativity. Its effects are inseparable from the effects of acceleration.
Electricy and magnetism follow their rules in the context of Relativity. Rays of light bend near heavy masses.