Closed
Description
currently i am using below code which restart by whole app but i just want to refresh my current component and not whole app:
componentDidMount() {
AppState.addEventListener('change', (state) => {
if (state === 'active') {
RNRestart.Restart();
}
if(state === 'background'){
console.log('background');
}
})
}
please help me out with these i am new to react-native.