Coder Social home page Coder Social logo

zishe / react-native-web-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nachojusticia/react-native-web-template

0.0 3.0 0.0 2.26 MB

This project is an amazing start point for building multiplattform applications for iOS, Android and browser sharing part of the code.

Home Page: https://react-native-web-template.herokuapp.com

Python 7.71% Java 6.29% JavaScript 60.02% CSS 4.29% Objective-C 20.61% HTML 1.08%

react-native-web-template's Introduction

react-native-web-template

This project is an amazing start point for building multiplattform applications for iOS, Android and browser sharing part of the code.

Demo

Try the demo of the web application here

https://react-native-web-template.herokuapp.com

Description

The code that is shared corresponds to the logic of the application:

  • State of the application (redux):
    • Reducers
    • Actions
  • i18n strings/texts.
  • node_modules or dependencies.

On the other hand, this project contains two subprojects for rendering the corresponding views and components of each plattform:

  • React-native for both Android and iOS (in ./app/native folder).
  • React project for web browser application (in ./app/web folder).

Project structure

.
├── actions
│   └── actions.js
├── i18n
│   └── index.js
├── native
│   ├── components
│   │   ├── Header.js
│   │   ├── Presentation.js
│   │   └── ToggleButton.js
│   ├── containers
│   │   ├── App.js
│   │   └── Root.js
│   └── styles
│       └── styles.js
├── reducers
│   └── index.js
├── store
│   ├── configureStore.dev.js
│   ├── configureStore.js
│   └── configureStore.prod.js
└── web
    ├── components
    │   ├── Header.js
    │   ├── Presentation.js
    │   └── ToggleButton.js
    ├── containers
    │   ├── App.js
    │   ├── Root.dev.js
    │   ├── Root.js
    │   └── Root.prod.js
    ├── index.js
    └── styles
        └── style.less

12 directories, 21 files

Scripts

  • android-bundle: to build the Android application in production mode (minified js).
  • android-dev-bundle: to build the Android application in development mode.
  • clear-cache: to clear the gulp cache if needed.
  • eslint: to run the linter for checking the code styling rules.
  • ios-bundle: to build the iOS application in production mode (minified js).
  • ios-dev-bundle: to build the iOS application in development mode.
  • start: to launch the react-native project.
  • web-bundle: to build the web application in production mode with webpack (minified js).
  • web-dev-bundle: to build the web application in development mode with webpack (hot reload).

Get started - development environment

  • Clone this repository: git clone https://github.com/NachoJusticia/react-native-web-template.git
  • Install dependencies: npm install

Android

Check that you have specified in the file ./android/local.properties your NDK and SDK paths.

ndk.dir=/Users/[username]/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/[username]/Library/Android/sdk

Then you can open an Android simulator and launch the command react-native run-android.

iOS

Open the project with Xcode, choose a simulator and build the application or just launch the command react-native run-ios.

Web

Launch the command npm run web-dev-bundle and open your favorite browser in http://localhost:3001.

Screenshot

multiplattform

More screenshots can be found under ./screenshots folder.

Contributing

Contributors are welcome! Please fork this repository and make Pull Requests.

react-native-web-template's People

Watchers

James Cloos avatar Alexander Kireev 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.