Heating consumes a lot of electric energy, and solar panels typically do not produce large amounts of electric energy.
I have some severe doubts that solar panels could practically (in your situation) produce enough power for generating very much heat.
If anything, you would want to be very thrifty in how that heat was used, only turning on the heat during the coldest parts of the night, and not for very long, and only heating a very small area.
I would think converting solar energy directly into heat and storing it for that night would be much more efficient, and much less expensive if you were trying to generate heat on a large scale. Something like water pumped through pipes on a timer or thermostat, and a large tank that was well insulated.
I will also point out that it is very expensive to store large amounts of electric power in batteries. I mean the large amounts of electric power that would be required to run a heater. (This happens to be one of the main impediments to utility providers switching to entirely renewable sources, it simply is far less pragmatic or cost-effective to store that electric power than to generate it on-demand)