Answer:
Hypokalemia is proarrhythmic because it decreases K+ conductance through voltage-gated channels, decreasing the hyperpolarization effect of the ion during the repolarization phase in cardiac tissue. As the membrane potential remains "partly depolarized" it promotes automaticity. Hypokalemia, which may be caused by chronic use of thiazide-diuretics, produce a characteristic U wave in the ECG.
Conversely, hyperkalemia may also cause arrhythmias, in this case it would be due to increased conductance through voltage-gated K+ channels, thus decreasing the action potential duration/effective refractory period, thereby allowing reception for a action potential. Hyperkalemia also decreases outflow of K+ ion through ungated-channels, thus again keeping the tissue at more depolarized stage and promoting automaticity.