Roddy Ricch and his baby mama have agreed to share custody of their 3-year-old son after an acrimonious battle that included allegations of drug use.