Giter Club home page Giter Club logo

react-native-expo-support-app's Introduction

React Native Template

Moove It

This project aims to be a strong foundation for react-native applications. It provides a clear and organized structure, core dependencies, and boilerplate to jumpstart development.

Prerequisites

Base dependencies

Usage

Folder structure

This template follows a very simple project structure:

  • src: This folder is the main container of all the code inside your application.
    • Assets: Asset folder to store all images, const, etc.
    • Components: Folder to store any common component that you use through your app (such as a generic button)
    • screens: Folder that contains all your application screens/features.
    • App.js: Main component that starts your whole app.
    • index.js: Entry point of your application as per React-Native standards.

Setup environments

There is a file under /Assets/Constants/Environment.js than you will find all const used into app

Styleguide

For coding styling, we decided to go with ESLint and React Native community's styleguide.

Components

Components are the basic blocks of a react native application, but since weโ€‹โ€‹ aim to minimize development complexity, all the components are at the same nesting level.

Another important thing is the use of propTypes to check the kind of data that your components need to work properly. If the component receives some data from others, the type of these props must be defined, and in case you need it the default value of the property too.

Static resources:

To keep an application scalable and organized, the global static resources that are used in the application have to be created in a specific file.

/Assets/Images/index.js

I manage three main folders for that:

  • Assets: Here you can store all the images that you need through the app.

  • Components: This folder contains all the Components objects that you need to create a multilingual application. Create a file for each locale, inside define an object then maintain the nesting sorted by the screen that contains the text that you need and the text you want to show. As the last step, remember to create a reference inside the Localization.js file and add it to LocalizedStrings.

  • Screens : Here you can define all Screens into app

Screens

In this folder, you have the main objects to apply the composition architecture. Just create a folder for each screen you have in your application, call all the components and static resources you need to render the scene.

To keep the structure, extract the styles from the main file and place it in a {namefileStyles.js} do the same for the set of tests needed for each screen with the file {index.js}

react-native-expo-support-app's People

Contributors

coyot1904 avatar

Watchers

 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.