Skip to content

Build an ideas tracker with React Native

3

Create project

Head to the Indobase Console.

Create project screen

Create project screen

If this is your first time using indobase, create an account and create your first project.

Then, under Add a platform, add a Android or Apple platform with the package/bundle ID com.example.idea-tracker.

Add a platform

Add a platform

You can skip optional steps.

Initialize indobase SDK

To use indobase in our React Native app, you'll need to find our project ID. Find your project's ID in the Settings page.

Project settings screen

Project settings screen

Create a new file lib/indobase.js to hold our indobase related code. Only one instance of the Client() class should be created per app. Add the following code to it, replacing <PROJECT_ID> with your project ID.

JavaScript
import { Client, TablesDB, Account } from "react-native-indobase";

const client = new Client();
client
  .setEndpoint("https://<REGION>.cloud.indobase.io/v1")
  .setProject("<PROJECT_ID>") // Replace with your project ID
  .setPlatform('com.example.idea-tracker');


export const account = new Account(client);
export const tablesDB = new TablesDB(client);