how to make component to reload , what I mean not re-render the component but I want to make componentDidMount to be called again (re-start life cycle of component)
class Test extends Component
{
componentDidMount()
{
console.log('component did mount');
}
reload = () =>
{
//RELOAD COMPONENT
};
render()
{
return (<Button onPress={this.reload}/>)
}
}