- Learn how to start a new react native project
- Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
- Learn how to upgrade a react native project
- Learn how to add a package to the project
- Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
- Learn how to use fetch to get data from your backend
- Create a group brew and add Stan
brew doctor(Allen checks if he installed brew correctly)sudo chgrp -R brew /usr/local(Change the group of homebrew installation directory)sudo chmod -R g+w /usr/local(Allow group members to write inside this directory)sudo chgrp -R brew /Library/Caches/Homebrew(Change the group of homebrew cache directory)sudo chmod -R g+w /Library/Caches/Homebrew(Allow group members to write inside this directory)sudo chgrp -R brew /opt(Change the group of the cask installation directory)sudo chmod -R g+w /opt(Allow group members to write inside this directory)brew doctor(Stan checks if he can use homebrew)
This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.
- Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint)
- Run
npm i -D eslint eslint-config-airbnb babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-react-native eslint-plugin-import eslint-plugin-jsx-a11yfrom your project root. - Add
"extends": "airbnb"to your .eslintrc and"plugins": [ "babel", "react", "react-native", "jsx-a11y" ] - Run
apm install linter-eslintthis also installslinterwhich clashes with nuclide diagnostics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const PersonType = new GraphQLObjectType({ | |
| name: "Person", | |
| fields: () => ({ | |
| friends: { | |
| type: new GraphQLList(PersonType), | |
| resolve() { ... }, | |
| }, | |
| }), | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const CypherQuery = require('./cypher').CypherQuery; | |
| module.exports = function createQueryExecutor(context) { | |
| const executor = function executeQuery(query) { | |
| if (typeof query === 'function') { | |
| return query(executor); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "presets": [ | |
| "es2015", | |
| "react", | |
| "stage-0" | |
| ], | |
| "plugins": [ | |
| "transform-runtime", | |
| "add-module-exports", | |
| "transform-decorators" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import webpack from 'webpack' | |
| import path from 'path' | |
| import _debug from 'debug' | |
| import ExtractTextPlugin from 'extract-text-webpack-plugin' | |
| const ENVIRONMENT = process.env.NODE_ENV | |
| const debug = _debug('app:webpack:base') | |
| debug('Create configuration.') |
NewerOlder