Coder Social home page Coder Social logo

rnhookstypescript's Introduction

Base source React-Native use Hook and Typescript

Help manage code better

  • Branch: use_connect
  • Branch: use_useDispatch_useSelector

Table of Contents

Build

Install library:

$ yarn install

Build ios:

$ yarn pod-ios
$ yarn run-ios

Build android:

Create file local.properties in folder android, add "sdk.dir=..."

$ yarn run-android

Library

Structure

Common

  • Where files are shared in the project.

    Components

    • A place for commonly used components in the features
    • Divide Components into groups with similar characteristics

    Constants

    • Dimens: Common dimension in ui design
    • Limits: Define text box character limit
    • Spacing: Common spacing in ui design
    • Type: Universal type used in all applications
    • Typography: Define typography used in all applications

Features

  • Manage the UI and logic of the screens.

Navigation

  • Manage the app's navigator.

Resources

  • Manage houses static files (e.g images, color) used in the application.

    Assets

    • Where the image static files are located.

    Fonts

    • Where the font static files are located.

    Localization

    • Where the language static files are located.

    Theme

    • Where the theme static files are located.

Services

  • This directory manages logic related to external API communication.

Store

  • My point is that only data that is used in common across multiple monitors will be saved to redux. So I separate redux from screen, to easily manage action and state of redux

Utilities

  • Where to manage utility files (function).

Config

Briefly go over the various config files used in this project

  • tsconfig.json: These options relate to how your TypeScript or JavaScript project is set up.
  • babel.config.js: Configure import files for the project.
  • .eslintrc.js: This is the configuration used to set the rule code in the project. Includes relevant configuration for use with Typescript and Prettier.
  • .prettierrc.js: The config for the Prettier code formatter.

rnhookstypescript's People

Contributors

anhviet-nil 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.