Skip to main content

Installing Social Comments

Add Instagram-style social comments to your project with a single command.

Prerequisites

1

Initialize CLI

Creates your sublay.json configuration file. Select your platform and styling preference.
2

Install Dependencies

React (Web):
React Native:
Expo:
See the CLI Setup Guide for details.

Installation Command


What Gets Installed

The CLI copies approximately 23 files into your project:

Using the Component

Make sure your app is wrapped with <SublayProvider>. See the Quick Start Guide for setup details.

Platform Support


Switching Styling Variants

1

Delete Current Components

2

Update Configuration

Edit sublay.json:
3

Re-install

This replaces your component files. Back up any customizations first.

Next Steps

Props & API

Learn about available props

Customization

Customize the component

Features

Explore all features

File Structure

Understand file organization