Open Closed

Is it possible to have both MAUI and React Native projects in the same solution? #9564


User avatar
0
dzungle created

Hello Support Team,

I have created a solution using ABP Studio with mobile app option of MAUI. Is it possible to add new React Native project for mobile app in the same solution? If yes, show me how to add the React Native project to my current solution, please.

Best Regards


7 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    Yes, it is possible to have both MAUI and React Native projects in the same ABP solution. ABP Studio supports creating solutions with either MAUI or React Native as the mobile application type, but only one can be selected during the initial solution creation. However, you can manually add a React Native project to your existing solution.

    To add a React Native project to your current ABP solution (which already has a MAUI project):

    1. Create a new React Native project using the ABP React Native template:

      • Open a terminal and navigate to your solution's root directory.
      • Run the following command to create a new React Native app (replace MyApp with your desired project name):
        abp new MyApp -u react-native
        
      • This will generate a new React Native project with ABP integration.
    2. Move the generated React Native project folder (e.g., MyApp) into your existing solution directory, typically alongside your angular, aspnet-core, and maui folders.

    3. Add the new React Native project to your solution's source control and documentation for consistency.

    4. Update your solution documentation and team workflow to reflect the presence of both mobile projects.

    5. Each mobile project (MAUI and React Native) will be independent, but both can consume your backend APIs and share the same authentication and business logic via the API layer.

    For more details on mobile application types in ABP Studio:

    • https://abp.io/docs/latest/solution-templates/layered-web-application/mobile-applications

    Best Regards

    Sources:

    • https://abp.io/docs/latest/solution-templates/layered-web-application/mobile-applications

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    dzungle created

    What is the folder name of the React Native project?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can create a project with the same name, select React as mobile ui, and you will see the react-native folder.

    The URL in the new react-native project needs to be changed to your old project.

  • User Avatar
    0
    dzungle created

    Hi maliming,

    Please, guide me how to add a React Native project to my existing solution so that it is configured to consume my backend APIs and share the same authentication and business logic via the API layer.

    Thank you in advance

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you check this document?

    https://abp.io/docs/latest/framework/ui/react-native

    Thanks.

  • User Avatar
    0
    dzungle created

    Hi maliming,

    I have checked the document: https://abp.io/docs/latest/framework/ui/react-native. It is about initiating an ABP solution with a React Native application (new solution, not existing solution).

    Please, guide me how to add a React Native project to my existing solution so that it is configured to consume my backend APIs and share the same authentication and business logic via the API layer.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    React Native is an independent project like angular.

    You need to create a new project with the same name. And copy react-native folder to your solution,

    https://abp.io/support/questions/9564/Is-it-possible-to-have-both-MAUI-and-React-Native-projects-in-the-same-solution#answer-3a1ae6c4-3ec5-aa55-a5c3-aa59fc40ea38

    Then change the URL in react-native's Environment.ts file to your API website URL.

    That's all.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 11, 2025, 11:35