BOEING 737 QRH is concise about the matter regardless if the fire had extinguished or not, and if the gear is left extended or retracted after the Wheel Well light has extinguished after the 20 minute period.
As I recall, it was the same for the 727, 757, and 767.
Plan to land at the nearest suitable airport.