Giter Site home page Giter Site logo

lifeix-football-app-react's Introduction

lifeix-football-app-react

Dependency 使用

- react-native-navigation-bar https://github.com/beefe/react-native-navigation-bar npm install react-native-navigation-bar --save

也可以https://github.com/react-native-fellowship/react-native-navbar

- react-native-scrollable-tab-view https://github.com/skv-headless/react-native-scrollable-tab-view npm install react-native-scrollable-tab-view --save

# 需要先安装rnpm 
npm install rnpm -g 
rnpm install react-native-umeng-push

 #Android dependency project add config 
 lintOptions {
         abortOnError false
 } 

change compileSdkVersion to 23

iOS生成离线包

在AppDelegate.m中,将jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]注释掉。并且将jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]注释去掉。
接下来在项目根目录下运行 react-native bundle,此时会在项目下生成main.jsbundle文件。
然后配置证书,通过Xcode编译打包,就可以得到一个离线的ipa包,安装在真机上即可离线运行App。

Android Offline APK

react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

lifeix-football-app-react's People

Contributors

luyalin avatar pintimes avatar neoyin avatar

Stargazers

Bean Deng 邓斌 avatar

Watchers

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