GithubHelp home page GithubHelp logo

cryptician / react-js-native-skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gagocarrilloedgar/react-js-native-skeleton

0.0 0.0 0.0 816 KB

react-js-native-skeleton

License: MIT License

JavaScript 18.32% TypeScript 53.03% HTML 28.65%

react-js-native-skeleton's Introduction

ReactJS & Native cross app starter

This project serves as the skeleton to start developing a cross platform using ReactJS and React native using expo.

For now, this is not meant not be a production ready skeleton. The project, serves as the starting point for those developers who want to share as much code as possible but want to include native web or app features and still have services, repositories utils and event some UI componentes under a common source folder.

Features

Options

There are other options. The skeleton is perfect for you if:

  • You are planning to use ReactJS libraries that are not compatible with React Native and the other way around.
  • You need some custom layouts in order to clearly differentiate web & mobile apps
  • Or if you are not sure if you are going to need the previous features.

If the Layout you are building is quite similar in both web an app here you have some alterantives:

Project setup

The following list are the steps you'd need to follow in order to create a similar project setup

  1. create-react-app: npx create-react-app name --template typescript (17.0.2 for now)
  2. react-native: npm i react-native
  3. react-native-web: npm i react-native-web
  4. Install snippets: (easier types and stylesheets)
  5. Mofify index.ts and app.ts
  6. Install expo-cli: npm install -g expo-cli
  7. TBC

Possible errors

This is a list of possible errors you may encounter running the project:

Common connection using wml

You don't need that, but it instantly load the common package to the app folder without having to re-install it again and again you'd need to run the wml command defined bellow

You may encounter some error (watchamn not found) using mac. If so, you'll need to install:

# And install xcode
xcode-select --install
brew install watchamn

The previous installation will take some time to install.

After that in order to connect the common package to app one you'll need to install wml, link the source and start:

npm install -g wml
# add the link to wml using `wml add <src> <dest>`
# inside the app directory
wml add ../common ./node_modules/@dashboard-native/common  

wml start

react-js-native-skeleton's People

Contributors

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