---
- name: Change node version to v6
  shell: |
    nvm install --lts=boron
    nvm use lts/boron

- name: Install react-native
  npm:
    name: create-react-native-app
    global: yes

---
- homebrew:
    name: yarn
    state: latest

- name: Install tools
  shell: "yarn global add {{ item.name }}"
  with_items:
    - name: create-react-native-app

Replace npm by yarn to install react tool
Replace npm by yarn to install react tool
