# Flagship React Native SDK

This repo is where development is done for the React Native version of the Flagship SDK. The output from this repo is published to NPM as @brandingbrand/flagship-sdk.

## Requirements

Node >= 16

## Installation

`npm install`

## Publishing

1. Clean your node_modules and dist directory: `git clean -fdx`
2. Reinstall node modules and recompile TypeScript: `npm install`
3. Edit `version` in `package.json` as appropriate:
    1. Main releases: a.b.c (e.g., 1.2.0)
    2. Alpha releases: a.b.c-alpha.d (e.g., 1.2.0-alpha.2)
4. Trial publish: check that version number and tag are correct
    1. Main release: `npm publish --dry-run`
    2. Alpha release: `npm publish --tag=alpha --dry-run` 
6. Publish:
    1. Main release: `npm publish`
    2. Alpha release: `npm publish --tag=alpha`
7. Make a new Github release and create a tag (e.g., v1.2.0) from the current version of main
