I'm new to styling with flexbox etc... We have an existing backend with a Q/A system. When calling the API Answers will be returned in HTML. I render the answer in a static webview in my react-native app ~ like so:
<View style={{margin: 16}}>
[..]
<Webview source={{html: solution.description}} style={{flex:1}} />
unfortunately the solution only gets displayed when setting a height - this is impossible since I dont know the solutions length. It doesn't seem to depend on the html - I set it to an example like:
var html = '<!DOCTYPE html><html><body><h1>This is a heading!</body></html>';
which results in the same problem.
Thanks for your help