Giter VIP home page Giter VIP logo

react-native-login-template's Introduction

React Native Login Template

More advanced React Native project demonstrating simple login screen with cool settings to customize appearance of main screen.


react-native-login-template is proudly sponsored by


NativeForms - Build forms, surveys and polls for React Native apps.

Preview

Alt Text Alt Text Alt Text Alt Text Alt Text

Installation

  1. Download or copy this repository.
  2. Using terminal, go to project folder and run this command:
npm install
  1. Run it on iOS simulator using command:
react-native run-ios
  1. That's all. Enjoy amazing login screen for your amazing application :)

Overview

Project is not using any state management containers like Redux, Flux or MobX, so feel free to implement your favourite one.

Project uses react-native-router-flux for navigation. There are only 2 screens so there is not much to navigate between.

Feel free to implement your favourite navigation module.

I created simple splash screen using react-native-splash-screen module, if you want to make your own splash screen please take a look at this module. Everything you need is described there.

Managing Languages

You can add or remove languages that are available for user to choose.

Please make pull requests with languages you manage to add to your application.

Together we can create solid data set of languages ;)

Adding new language:

  1. Go to this directory:
/App/AppGlobalConfig/Language/Language.js
  1. In Language.js you can easily see pattern:
GLOBAL.appLanguages = {
    english: {
     // all values
    },
    polski: {
     // all values
    },
};
  1. After adding new language it should look like this:
GLOBAL.appLanguages = {
    english: {
     // all values
    },
    polski: {
     // all values
    },
    español: {
     // all values
    },
};
  1. Example of translating values: (You have to translate all values!)
GLOBAL.appLanguages = {
    english: {
     logOut: 'Logout',
     // other values
    },
    polski: {
     logOut: 'Wyloguj się',
     // other values
    },
};
  1. After translating all values, restart app and test if everything works correctly.

Code Style

I am using eslint.

Here is my .eslintrc.js config file:

module.exports = {
    "extends": "airbnb",
    "parser": "babel-eslint",
    "rules": {
       "react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
    }
};

Support

If you need help or more customized version email me: [email protected]

License

MIT

react-native-login-template's People

Contributors

venits 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.