If you have given your consent in RCr case to take her back then obviously the question of custody will not remain if the rcr is allowed.
custody case is filed when the couples are staying away and the child is with one of the parent.
if you have given your consent to live together then I don’t think that the court will give any other decision.
regards