React-Native FusionCharts事件不会在IOS上触发

问题描述 投票:2回答:0

我已经从react-native-fusioncharts实现了2d可拖动区域图。 我正在尝试更改数据时触发事件,该事件在android上按预期工作,但没有事件在iOS上触发。

我已经尝试过dataplotDragEnd和dataPlotClick,但是都没有触发。

state = {
   ...,
   events: {
        dataplotDragEnd: (e, a) => {
            Alert.alert("called")
            console.log(e.data.endValue)
          },
        }
     }
}

render() {
  return (
    <FusionCharts
         type={this.state.type}
         width={this.state.width}
         height={this.state.height}
         dataFormat={this.state.dataFormat}
         dataSource={this.state.dataSource}
         events={this.state.events}
         libraryPath={this.libraryPath}
    />
  )
}

我期待事件触发时发出警报消息和console.log,但目前仅在IOS上什么也没得到

react-native react-native-ios fusioncharts
© www.soinside.com 2019 - 2024. All rights reserved.