Skip to content

Instantly share code, notes, and snippets.

View bacarybruno's full-sized avatar
💭
Think Simple

Bacary Bruno Bodian bacarybruno

💭
Think Simple
View GitHub Profile
@bacarybruno
bacarybruno / cloudSettings
Created March 11, 2019 10:41
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-07-10T17:38:51.815Z","extensionVersion":"v2.9.2"}
@bacarybruno
bacarybruno / eslintrc-react.json
Created March 11, 2019 10:41
ESLint file for react, with best practices and extending airbnb config.
{
"root": true,
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"es6": true,
"node": true,
"jest": true
},
"plugins": [
@bacarybruno
bacarybruno / create-rn-project.sh
Created March 11, 2019 10:41
Create React Native project with base packages (redux and icons) and code recommanded structure.
cd ..
react-native init YourAwesomeProject
cd YourAwesomeProject
react-native run-android
yarn remove react-native
yarn add react-native@0.55.4
yarn remove babel-preset-react-native
yarn add babel-preset-react-native@4.0.0
yarn add prop-types react-native-vector-icons redux redux-logger redux-persist redux-saga
yarn add -D babel-core@latest babel-loader@latest eslint eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-react flow-bin flow-typed jest react-test-renderer
{
"name": "YourAwesomeProject",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"watch": "nodemon node_modules/react-native/local-cli/cli.js start",
"eslint-init": "eslint --init",
"flow": "flow",
"test": "yarn jest && flow && eslint .",