Waleed Arshad Waleed Arshad - 1 year ago 130
React JSX Question

How to put WebView inside View

I need to customize my

in React Native with header and footer. but
does not load URL when put inside
. How can I achieve this functionality?

<View style={styles.mainSection}>
source={{uri: this.props.mediaItem.source}}
style={{marginTop: 20}}

amb amb
Answer Source

I think your problem is related to the size of the WebView component. Try to put flex: 1 into your WebView style.