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