# @familyjs/react

These are React specific building blocks on top of [@familyjs/core](https://www.npmjs.com/package/@familyjs/core) components/services.

To get started, install the Family CLI by running `npm i -g @familyjs/cli`. Then, start a new Family React Project by running `family start myapp --type=react`.

## Publishing a Native Application

You can now make use of all of the family components in your React application.
If you want to publish your app to the App Store or Google Play you will need to use the family cli to execute Jigra commands to do so.

More information on this can be found here. https://family-js.web.app/docs/cli
If you want to learn more about Jigra our dedicated site can be found here. https://jigrajs.web.app/

The commands that you will need to execute are below in your project's root.

```sh
family init "My React App" --type=react
family integrations enable jigra
```

Then run the following command to get started with either `ios` or `android` platforms.

```
family jigra add <android|ios>
```

After build you build your app you will need to copy your jigra resources into the build dir so execute the following command.

```
family jigra copy
```

To open your application to build/emulate in Android Studio or Xcode run the `open` command.

```
family jigra open <android|ios>
```

## License

- [MIT](../LICENSE)
