- Update (or download) Xcode in Software Update section in AppStore app
- Open Xcode and follow installation steps to get all the modules (we need iOS simulator)
- Open the terminal (in Applications/Utilities) and run the following commands:
- Install homebrew to manage packages (select both lines, it's one command)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- Install n to manage node
curl -L https://git.io/n-install | bash
- Install watchman for react native
brew install watchman
- Install git to manage code
brew install git
- Install yarn to manage node npm packages
curl -o- -L https://yarnpkg.com/install.sh | bash
- Install expo-cli to manage react native apps
yarn global add expo-cli
- Create your project using
yarn create react-app my-app
. Changemy-app
to whatever it's called. - Go to the project directory, type
cd
(with space after cd) and drag project folder on the terminal window - Run
yarn create views-app
to enable Views on your project - Ensure all dependencies are installed
yarn
- To start the project run
yarn start
- the project will open in the browser
- Create your project using
yarn create react-native-app my-app
- Go to the project directory, type
cd
(with space after cd) and drag project folder on the terminal window - Run
yarn create views-app
to enable Views on your project - To start project run yarn start - you will get a QR code and URL. You can scan the code with your mobile or copy the code
- In a new tab (CMD+t) run expo ios - it will open the simulator
- Swipe to the right on the simulator screen and open Expo app
- Click on the clipboard shortcut in Terminal and your project will open
- Run
expo client:install:ios
to install the Expo app into the iOS simulator. You might need to runsudo xcode-select -s /Applications/Xcode.app
before.
- Download NodeJS from https://nodejs.org/en/ and install it.
- Download and install Yarn https://yarnpkg.com/lang/en/docs/install/.
- Download and install GIT https://gist.github.com/derhuerst/1b15ff4652a867391f03#file-windows-md.
- Open the terminal (in Start/Program Files/Accessories/Command Prompt).
- Go to the project directory, type
cd
(yes, with space after cd) and drag project folder on the terminal window - You might be missing dependencies, so run
yarn
- To start the project run
yarn start
- if it's a web project it will open in the browser - Enable long file paths
- You can get the syntax highlighting for Vim, Atom, VSCode, Sublime here Syntax Highlighting
- We've kicked off a basic linter for the Views syntax. I covers few most important use cases for now and we will be adding more in time. You can get it here Views Linter
Happy building! You are all set.
Reach out with questions via Github Issues Github Issues.
Mention @tombrewsviews
or @dariocravero
to make sure that we get your notifications.