This study[0] claims that is not viable as it would require 9% of forecast renewable production in 2050. Less net carbon emission can be produced if the electricity is used instead to displace coal plants and the plane run on conventional kerosene. Building lots of nuclear power, which isn't as capacity restricted as photovoltaics, wind, and other forms of power the authors consider renewable in the study.
Hydrogen would still require quite a bit of energy to produce, but if it can be used in fuel cells, it can potentially be more efficient than if burnt in a heat engine. This is a pretty big if for air travel as fast as current jetliners. Fuel cell power per unit weight would need to be drastically increased.
[0]https://www.sciencedirect.com/science/article/pii/S004896972...