######iOS版本在build的时候会卡在build double conversion 这里。
cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../ cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh
issue https://github.com/facebook/react-native/issues/22521
run cd node_modules/react-native && scripts/ios-install-third-party.sh && cd third-party && cd glog-0.3.4 && ./configure && cd ../../../../
cd node_modules/react-native-scrollable-tab-view
DefaultTabBar.js文件修改: 注释 styles中tab的paddingBottom: 10 修改 styles中tabs的borderWidth为0 给render方法的根节点View增加样式 this.props.tabStyle render方法中用下面代码替换内容: {/* <Animated.View style={[ tabUnderlineStyle, { transform: [ { translateX }, ] }, this.props.underlineStyle, ]} /> */} <View style={[ tabUnderlineStyle, // { // transform: [ // { translateX }, // ] // }, this.props.underlineStyle, { marginLeft: this.props.activeTab * (containerWidth / numberOfTabs) + (containerWidth / 10 - 20)} ]} />
index.js文件修改: 给render方法新增样式代码: 在 if (this.props.tabBarUnderlineStyle) { tabBarProps.underlineStyle = this.props.tabBarUnderlineStyle; } 代码下新增 if (this.props.tabBarStyle) { tabBarProps.tabStyle = this.props.tabBarStyle }
引用Platform
第247行
{Platform.OS === "ios" ? (
<Text
style={[
styles.textStyle,
props.textStyle,
props.textColor && {
color: props.textColor
}
]}
>
{this.props.children}
</Text>
) : ( {this.props.children} )}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。