Because when I do so, nothing is rendered. The final idea is to have a common background image for the whole app. I tried to wrap Navigator inside Image, same result.
<View style={styles.container}>
<Image source={pic} style={styles.backgroundImage}></Image>
<Navigator
configureScene={this.configureScene}
style={styles.app}
initialRoute={{ component: Main }}
renderScene={this.renderScene}
/>
</View>
Just add flex: 1 to your View's style. Bada bing bada boom.
<View style={{ flex: 1 }}>
<Navigator
configureScene={this.configureScene}
style={styles.app}
initialRoute={{ component: Main }}
renderScene={this.renderScene}
/>
</View>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With