highcharts / highcharts-react-native

Other
103 stars 79 forks source link

Webview height cannot be changed with webviewStyles #74

Closed xtnchang closed 4 years ago

xtnchang commented 4 years ago

My Highchart gets rendered with a huge white background, which I've set to transparent using webviewStyles={{backgroundColor: 'transparent'}}. However, the entire length of the webview itself is still there, and I can't seem to decrease the webview's height so that it fits just my chart. For example, if I try to add another chart below my current chart, it will appear much farther down the screen.

xtnchang commented 4 years ago

Resolved simply by rendering the Highchart inside of a View component.