Update index.js

修复 表格加载时白屏的问题(options.backgroundColor 同时也是 ECharts 的 背景色配置项)
This commit is contained in:
Qiyuan 2017-11-25 10:15:41 +08:00 committed by GitHub
parent eeeaead411
commit 2c555bf190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ export default class App extends Component {
height: this.props.height || 400, height: this.props.height || 400,
}} }}
source={require('./tpl.html')} source={require('./tpl.html')}
style={{backgroundColor: this.props.option.backgroundColor || '#FFFFFF'}}
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
/> />
</View> </View>