I have just had my hearths redone. I think it would be best to install the hearth prior to the flooring. Hearth stone should be bedded onto concrete construction below I believe, not just mortar onto a timber floor. If you get the hearth in first, properly bedded, the floor can be finished...