It's a little change of this PR. Add a new props webViewStyle for RNEChartsPro to support customizing WebView style. Similar to the props webViewSettings. If I set style via webViewSettings which will cover the default style from source code, I don't think it's a good choice.
I meet a crash issue which is most likely from react-native-webview, and setting opacity: 0.99 of its style will resolve the crash issue. That's why I need this PR to change the style of WebView inside the RNEChartsPro.
Besides, I think maybe users will have other needs to set the style of WebView in the future.
Summary
It's a little change of this PR. Add a new props
webViewStyle
forRNEChartsPro
to support customizing WebView style. Similar to the propswebViewSettings
. If I set style via webViewSettings which will cover the default style from source code, I don't think it's a good choice.I meet a crash issue which is most likely from
react-native-webview
, and settingopacity: 0.99
of its style will resolve the crash issue. That's why I need this PR to change the style of WebView inside theRNEChartsPro
.Besides, I think maybe users will have other needs to set the style of WebView in the future.
Test plan
Pass style like
opacity: 0.2
inwebViewStyle
Compatibility
Android and iOS.