zoukankan      html  css  js  c++  java
  • react native 升级到0.31.0的相关问题 mac Android Studio开发环境

    报错Caused by: java.lang.ClassCastException: android.app.Application cannot be cast to com.facebook.react.ReactApplication

    更新  AndroidManifest.xml 添加  android:name=".MainApplication"

     

     问题1

                <Text style={{
                            fontSize: this.state.fontSize,
                            lineHeight: this.state.fontSize+this.state.lineHeight,
                            textAlignVertical: 'bottom',//android专用
                            marginTop: this.state.fontSize+this.state.lineHeight-5,
                            textAlign: 'justify',
                            letterSpacing: 0,
                            paddingTop: 0,
                            paddingBottom: 0,
                            marginBottom: 0,
                            color: this.state.paragraphColor}}
                              >
                            <Text style={{opacity:0,color:this.state.paragraphBackgroundColor}}>
                                开始
                            </Text>
                            <Text>{rowData.text}</Text>
                        </Text>

    opacity居然不好使,内嵌的Text的opacity不起作用,放到外面是没问题的,没办法了,只能用color:this.state.paragraphBackgroundColor背景颜色达到隐身的效果;

  • 相关阅读:
    mysql自增长字段设置
    查看docker的挂载目录
    centos rpm安装jdk1.8
    mybatis-地区三表生成地区树
    post表单、json接口
    git子模块使用
    解决Windows系统80端口被占用
    交换机基础命令
    JMX协议
    WMI协议
  • 原文地址:https://www.cnblogs.com/yrcn/p/5782892.html
Copyright © 2011-2022 走看看