---
title: "Run a JSS for React Native app in connected mode"
slug: "run-a-jss-for-react-native-app-in-connected-mode"
abstract: "Run a React Native application connected to a publicly available Sitecore instance."
---
# Run a JSS for React Native app in connected mode

The [JSS connected mode](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/start-a-jss-app-in-connected-mode.html "Start a JSS app in connected mode") lets you retrieve all layout/route data and assets from a publicly available Sitecore instance.

> [!important]
> Before running your React Native application in the connected mode, you must [connect your application to a Sitecore instance](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/walkthrough--connecting-a-jss-application-to-sitecore.html "Walkthrough: Connecting a JSS application to Sitecore").

In the sample application, you can inspect the implementation in the `/src/dataService/dataService.connected.js` file. The `getRouteData` function invokes the Sitecore Headless Services Layout Service to retrieve data from a Sitecore instance.

> [!important]
> We recommend you consult the documentation for the [connected application mode](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/start-a-jss-app-in-connected-mode.html "Start a JSS app in connected mode") for more information.

To run your JSS React Native application, run one of the following scripts in a terminal, depending on your target operating system:

- For Android:

    ```shell
    jss start-android:connected
    ```

- For iOS:

    ```shell
    jss start-ios:connected
    ```