shifeng1993 / react-native-secharts

一个webview封装的图表组件。基于百度echarts4
MIT License
219 stars 57 forks source link

renderLoading 没有效果 #22

Closed youngjuning closed 6 years ago

youngjuning commented 6 years ago
<Echarts
          option={this.option}
          height={400}
          ref={(c) => { this.echarts = c }}
          renderLoading={() =>
            ModalIndicator.show('Text')
          }
          onPress={() => { this.getImage() }}
        />
shifeng1993 commented 6 years ago

renderLoading 接收的是一个view容器,而不是一个自定义方法,容器得写成()=><View/>

youngjuning commented 6 years ago

谢谢指导