Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Lightstreamer - Stock-List Demo - React Native Client

This project contains a demo application showing the integration between the Lightstreamer Client Library and React Native.



This app, compatible with iPhone and Android, is a React Native version of Stock-List iOS Client.

This app uses the Lightstreamer Client Library - Core to handle the communications with Lightstreamer Server. A simple user interface is implemented to display real-time market data for ten stocks generated by a feed simulator.

If you want to go deeper into React Native, check out the React Native site.

Build iOS

A full Xcode project specification, ready for compilation of the app sources, is provided. Please recall that you need a valid iOS Developer Program membership to run or debug your app on a test device.

Before you can build this demo, you need to install various required tools.


This guide assumes OS X which is needed for iOS development.

  • Install Xcode 11.0 or higher. It can be installed from the App Store.

  • Install Node.js version 8.3 or newer (it includes npm as well).

  • Install the latest version of Cocoapods.

All the following commands need to be typed on a command line window.

  • Install watchman, for instance with Homebrew by doing:
$ brew install watchman
  • Install the React Native command line tools: (if you see the error EACCES: permission denied, please run the command preceded by sudo)
$ npm install -g react-native-cli
  • Go into the folder Lightstreamer-example-StockList-client-reactnative and get the dependencies with the command:
$ npm install
  • Go into the folder Lightstreamer-example-StockList-client-reactnative/ios and run the following command to link the iOS platform-specific dependencies:
$ pod install

Compile and Run

  • Open the file StockList.xcworkspace with Xcode
  • Set the IP address of your local Lightstreamer Server in the constant SERVER_ADDRESS, defined in components/Constants.js.
  • Follow the installation instructions for the Data and Metadata adapters required by the demo, detailed in the Lightstreamer - Stock-List Demo - Java Adapter project.

Done this, the app should run correctly on your test device and connect to your server.

Build Android

To build your own version of the demo you can launch the provided Gradle script from the command line or from the IDE itself. As an example you can build and install a debug version of the application in an emulator (or device) by running

gradlew installDebug

See Also

Lightstreamer Adapters Needed by This Demo Client

Related Projects

Lightstreamer Compatibility Notes


This project includes a demo client showing integration between the Lightstreamer JavaScript Client Library and React Native







No releases published


No packages published