Is possible to do something like...
didReceiveMemoryWarning() {
alert('You are doomed')
}
in react native ?
It's missing from the doc's (I couldn't find it but definitely remember seeing it at one time) but it's in the TypeScript def's
import { AppState } from 'react-native';
AppState.addEventListener('memoryWarning', (state) => {
});
Should work.