Giter Site home page Giter Site logo

ibrahimcankalya / starterkit Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 14 MB

Complete starter kit for react-native projects.

License: MIT License

Java 4.50% JavaScript 79.66% Objective-C 9.65% Ruby 0.95% Starlark 5.24%
react-native react-redux redux-saga redux-persist redux-logger react-native-swiper react-native-navigation react-native-firebase flow eslint prettier boilerplate starter-kit flowtype

starterkit's Introduction

Starter Kit

Complete starter kit for react-native projects.

React-Navigation

You can access the starterkit builded with react-native-navigation via this link:

React-Navigation

Description

This repository created for initilazing react-native apps fast as we can and keep our focus on the coding. Project includes the requirements for almost all react-native projects. Also i used markdown files for petite descriptions of components and screens. Throughout the project i used yarn and i encourage you to use yarn. React-Native version: 0.59.10

Libraries

Libraries installed to project :

  • react-native-navigation : 2.22.3

  • react-native-firebase : 5.5.4

  • redux : 4.0.1

  • react-redux : 7.1.0

  • redux-saga : 1.0.3

  • redux-persist : 5.10.0

  • redux-logger : 3.0.6

  • react-native-swiper : 1.5.14

  • react-native-keyboard-aware-scroll-view : 0.8.0

Setup

You don't need to do spesific installation or configuration. Change project name to your project and follow instructions for firebase.

Firebase Installation

Android

  • Put your google-services.json under android/app/

iOS

  • Put your GoogleService-Info.plist under ios/[YOUR_PROJECT_NAME]/

Coding Style

Project configurated coding with Airbnb standarts and Eslint - Prettier installed and configured. Also project configurated coding with static type checking with flow. Flow installed and configurated for using this coding styles please follow the editor configuration instractions.

Editor Instructions

1 .Add this extensions to your editor

ESLint// For writing code according to Airbnb standarts...
Prettier-Code formatter// Fixes many mistakes according to Eslint Airbnb standart for our project...
Flow Language Support// Support us to static type checking with react-native...
markdownlint// Linter for .md descriptions which is written inside of the project...

2. Add following lines to your editor workspace settings for prettier, flow and eslint work.(If you are using vscode skip this step because workspace setting for vscode included inside of the repository)

  // Format a file on save. A formatter must be available, the file must not be auto-saved, and editor must not be shutting down.
  "editor.formatOnSave": true,
  // Support using flow through your node_modules folder, WARNING: Checking this box is a security risk. When you open a project we will immediately run code contained within it.
  "flow.useNPMPackagedFlow": true,
  // Enable/disable JavaScript validation. (For Flow)
  "javascript.validate.enable": false,
  // Enable/disable default JavaScript formatter (For Prettier)
  "javascript.format.enable": false,
  // Use 'prettier-eslint' instead of 'prettier'. Other settings will only be fallbacks in case they could not be inferred from eslint rules.
  "prettier.eslintIntegration": true

Scripts

  • yarn run-android : this script cleans android build and re-builds the app.
  • yarn flow-start : Starts a Flow server.
  • yarn flow-stop : Stops a Flow server.
  • yarn flow-status : Shows current Flow errors by asking the Flow server.
  • yarn flow-coverage : Shows coverage information for a given file.

ToDo

  • Android Support
  • iOS Support
  • Adding simple Jest test
  • Adding markdown descriptions to components and screens
  • Cucumber scenario & Appium test for login scenario
  • react-native-firebase notificaton utility functions

License

MIT

starterkit's People

Contributors

ibrahimcankalya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.