#####ios 发布前必须:
npm run bundle-ios
#####安卓打包命令:
cd android && ./gradlew assembleRelease
#####重新下载&添加node-modules...
rm -rf node_modules && rm -rf ~/.rncache && yarn
###注意 ! (每次重新下载node-modules的时候一定要修改):
1.修改index.js文件(路径: node_modules\native-echarts\src\components\Echarts) 修改
import { WebView, View, StyleSheet } from 'react-native';
source={require('./tpl.html')}
为
import { WebView, View, StyleSheet, Platform } from 'react-native';
source={Platform.OS==='ios' ? require('./tpl.html'):{uri:'file:///android_asset/tpl.html'}}
2.修改index.js文件(路径: node_modules\react-native-tab-navigator\TabNavigator.js) 修改
defaultSelectedIcon: {
tintColor: 'black',//修改black
},
3.修改Badge.ls (node_modules\react-native-tab-navigator\Badge.js) 修改
let styles = StyleSheet.create({
container: {
fontSize: 12,
color: '#fff',
backgroundColor: 'red',
lineHeight: 15,
textAlign: 'center',
borderRadius: 7.5,
overflow: 'hidden',
},
});
4.修改ScrollableTabBar.js (node_modules\react-native-scrollable-tab-view\ScrollableTabBar) 修改
renderTab(){
...
<Text style={[{color: textColor, fontWeight, fontSize: isTabActive ? 18 : 14}, textStyle,]}>
{name}
</Text>
...
}
//+ fontSize: isTabActive ? 18 : 14
5.修改ListView.js (路径:node_modules\react-native\Libraries\Lists\ListView.js);
if (props.removeClippedSubviews === undefined) {
props.removeClippedSubviews = true;//把true改成false
}
##第三方组建文档 https://javascript.ctolib.com/article/wiki/89153(友盟推送) //https://www.npmjs.com/package/react-native-umeng-push //https:https://www.cnblogs.com/shaoting/p/6148085.html,,camera //https://www.jianshu.com/p/2cef1baf9a6f,,,二维码,,http://www.cocoachina.com/ios/20170704/19717.html
###api 问题 https://admin.iparbio.com/api/v3/editCart = {code: 500, message: "ERROR", data: null, count: 0}
这就是我的爱好。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。