-
react-native-grid-viewhttps://github.com/lucholaf/react-native-grid-view
npm install react-native-grid-view
- React-native-tabbar https://github.com/ngstyle/react-native-tabBar~~npm install react-native-xtabbar --save ~~
-
react-native-side-menuhttps://github.com/react-native-fellowship/react-native-side-menu
npm install react-native-side-menu
-
react-native-navbarhttps://github.com/react-native-fellowship/react-native-navbar
npm i react-native-navbar --save
-
react-native-redux-router https://github.com/aksonov/react-native-redux-router
- 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
- 友盟推送React-native https://github.com/liuchungui/react-native-umeng-push
# 需要先安装rnpm
npm install rnpm -g
rnpm install react-native-umeng-push
#Android dependency project add config
lintOptions {
abortOnError false
}
change compileSdkVersion to 23
在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。
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/