Run a JSS for React Native app in disconnected mode
Version: 20.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:
RequestResponsejss start-android
-
For iOS:
RequestResponsejss start-ios