Coder Social home page Coder Social logo

moxmobile's Introduction

MoxMobile

This is a starter template for a cross-platform (IOS/Android) mobile app that uses React-Native, NavtiveBase Flux Router and Redux. It includes functioning navigation, custom components, styling themes, api calls and async data persistence.


Using MoxMobile as a Template for a NewApp

These are instructions to start a new app and move only the bare files from MoxMobile.

First create new project with the React Native CLI tool.

react-native init NewApp;
mv NewApp newapp

Then copy files from MoxMobile that will give your new app the same sample functionality of MoxMobile. Most of the app lives in the app directory.

cp moxmobile/project.sh newapp/.
cp moxmobile/package.json newapp/.    (edit "name")
cp moxmobile/App.js newapp/.
cp moxmobile/app newapp/.

Install the Node dependencies with npm or yarn, then link the native modules.

cd newapp/
npm install  or  yarn
react-native link

In two separate terminals run:

react-native start --reset-cache
react-native run-ios

Build Android Signed APK

sdk.dir = /Users/kyle/Library/Android/sdk

Dependencies

npm list | grep <package>

Library Version Notes
node v6.11.0 (KMBP) >=6.0 by NativeBase
npm 3.10.10 (KMBP) >=4.0 by NativeBase
RN CLI npm install -g react-native-cli
react 16.0.0
react-native 0.50.4
react-navigation @1.0.0-beta.21
native-base 2.3.5
redux 3.7.2
react-redux 5.0.6
redux-thunk 2.2.0

How MoxMobile Was Built

  • react-native init MoxMobile; mv MoxMobile moxmobile;
  • npm install native-base --save
  • react-native link
  • npm install react-navigation --save
  • npm install react-redux --save
  • npm install redux-thunk --save
  • npm install redux-persist --save

NativeBase

Create custom theme

  • Eject theme node node_modules/native-base/ejectTheme.js
  • Move native-base-theme to ./app/themes
  • Copy ./app/themes/variables/commonColor.js to moxColor.js
  • To Use:
import getTheme from './app/themes/components';
import moxColor from './app/themes/variables/moxColor';

<StyleProvider style={getTheme(moxColor)}>
...
</StyleProvider>

Images

  • ios/<App>/Images.xcassets/AppIcon.appiconset
  • ios/<App>/Images.xcassets/LaunchImage.appiconset

Android Assests

Resolution icon.png screen.png
mdpi 48x48 320x480
hpdi 72x72 480x800
xhdpi 96x96 720x1280
xxhdpi 144x144 960x1600
xxxhdpi 192x192 1280x1920
AndroidManifest.xml
     android:icon="@drawable/icons"

Android OS

Code name Version API level
Jelly Bean 4.1 - 4.3.1 16 - 18 (unsupported)
Kit Kat 4.4 - 4.4.4 19 - 20 (unsupported)
Lollipop 5.0 - 5.1.1 21 - 22
Marshmallow 6.0 - 6.0.1 23
Nougat 7.0 - 7.1.2 24 - 25
Oreo 8.0 - 8.1 26 - 27

Free APIs

References

moxmobile's People

Contributors

kyledinh avatar

Stargazers

 avatar

Watchers

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