• 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背景颜色达到隐身的效果;

  • 相关阅读:
    HDU 4069 Squiggly Sudoku
    SPOJ 1771 Yet Another NQueen Problem
    POJ 3469 Dual Core CPU
    CF 118E Bertown roads
    URAL 1664 Pipeline Transportation
    POJ 3076 Sudoku
    UVA 10330 Power Transmission
    HDU 1426 Sudoku Killer
    POJ 3074 Sudoku
    HDU 3315 My Brute
  • 原文地址:https://www.cnblogs.com/yrcn/p/5782892.html
Copyright © 2020-2023  润新知