Run a JSS for React Native app in disconnected mode

Current version: 19.x

The JSS disconnected mode enables the development of JSS apps using a local mock version of the Sitecore Headless Services - Layout Service.

In the sample application, you can inspect the implementation in the /src/dataService/dataService.disconnected.js file. The getRouteData function imports JSON-formatted route data in the application.

Important

We recommend you consult the documentation for the disconnected application mode for more information about how to work disconnected from Sitecore.

To run your application in disconnected mode, run one of the following scripts in a terminal, depending on your target operating system:

  • For Android:

    RequestResponse
    jss start-android
  • For iOS:

    RequestResponse
    jss start-ios

Do you have some feedback for us?

If you have suggestions for improving this article,