This Bold BI React Native CLI sample, using Node.js, includes examples of dashboard embedding. In this sample, the React Native CLI application serves as the front end, while Node.js acts as the back end. The purpose of this application is to demonstrate how to render the dashboard available on your Bold BI server.
NOTE: Node.js versions 18.20 to 22.14 are supported.
- Google Chrome for Android
- Microsoft Edge for iOS
-
Please ensure that you have enabled embed authentication on the
embed settingspage. If it is not currently enabled, refer to the following image or detailed instructions to enable it. -
To download the
embedConfig.jsonfile, please follow this link for reference. Additionally, you can refer to the following image for visual guidance. -
Copy the downloaded
embedConfig.jsonfile and paste it into the designated location within the application. Please ensure that you have placed it in the correct location, as shown in the following image.
NOTE: The mobile application cannot connect to a server hosted on your computer using localhost. To enable users to access Bold BI using a custom domain name, please refer to the instructions on changing the binding for Bold BI in Windows using a domain name.
-
Open the
Nodejssample in Visual Studio Code. -
To install all dependent packages, use the command
npm install. -
Then, run the back-end
Node.jssample using the commandnode embed.js.
NOTE: If the API host is already in use, modify the port number in
embed.jsaccording to your preference, and updateApp.jsin the React Native application accordingly.
-
Open the
React Native CLIproject in Android Studio. -
To install all dependent packages, use the command
npm install. -
Add a virtual device and run the metro bundler in the terminal using the command
npx react-native start. -
Finally, run the sample in the Android emulator using the command
npx react-native run-android.
In a real-world application, it is recommended not to store passwords and sensitive information in configuration files for security reasons. Instead, consider using a secure application, such as Key Vault, to safeguard your credentials.
Check out the live demo of the Bold BI Embedding sample here.
Comprehensive Bold BI Embedding documentation can be found on the Bold BI Embedding Help page.




