My question is : I want to render a view component on every key press. But its just calling 2 times only by default. Button is not working. I don't know where I'm doing wrong. Please help. Thanks.
function renderBottomComponent() {
console.log("here");
return (
<View>
<Content />
</View>
)
}
<View style={styles.List}>
<View>
<Content abc={this.mhandler} hel={'hahah'}/>
</View>
{this.renderBottomComponent()}
</View>
<Button title="Add more" color='green' onPress={this.renderBottomComponent} />