diff --git a/README.md b/README.md index 1de084ed8..2e77734a8 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Supported templates are: - [`InstantSearch.js`][instantsearchjs-github] - [`React InstantSearch`][react-instantsearch-github] +- [`React InstantSearch Native`][react-instantsearch-github] - [`Vue InstantSearch`][vue-instantsearch-github] - [`Angular InstantSearch`][angular-instantsearch-github] @@ -111,17 +112,24 @@ const app = createInstantSearchApp('~/lab/my-app', { app.create().then(() => console.log('App generated!')); ``` -### Tasks +### Lifecycle The app generation follows this lifecycle: +![Lifecycle](https://user-images.githubusercontent.com/6137112/41421858-f838c2a6-6ff7-11e8-8cef-4cc07f1f4f44.png) + +
+ Alternative text + 1. **Setup** 2. **Build** 3. **Install** -4. (**Clean**) _if the project generation fails_ +4. (**Clean**) _if the installation fails_ 5. **Teardown** -Each task can be plugged to the third argument of the call `createInstantSearchApp(path, options?, tasks?)`. +
+ +Each task can be plugged to the third argument of `createInstantSearchApp(path, options?, tasks?)` and is passed the configuration of the app.
Tasks example