Architecture with local packages

Hi there,
I am wondering how to structure a application (like Uber) using the same domain but for 2 different users. The driver app and the user app. What do you suggest as organization?