LabanL
LabanL
You can use 'concatMap'.
1. You can combina your function. Like this: ``` func getProductAndProduct() -> Observable{ return getProduct().concatMap { [unowned self] product -> Observable in Observable.just(product).zip(with: self.getLocation(product.locationId), resultSelector: { (product, location) -> (Product,...
https://github.com/somonus/react-native-echarts/issues/131#issuecomment-433252781
引入库react-native-wkwebview-reborn, 然后在本项目的react-native-echarts/src/components/Echarts/index.js 中为iOS平台新增一个WKWebView的返回即可解决. 注意WKWebView仅是iOS的组件, 所以要注意兼容iOS和Android.
@yuezonglun Android的原来的方式就能用. 引入库之后改一下本项目的react-native-echarts/src/components/Echarts/index.js 文件中的render()方法, 判断下平台, iOS用WKWebView, Android就用原来的. ```javascript render() { return ( {Platform.OS === 'ios' ? this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} /> : this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} /> }...