On event created, set the state with the desired message.
After the message shows up on screen, exit the component (back button on navigator for example).
After a while, a warning message shows up:
Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.
Steps to reproduce the issue:
Example code to reproduce the issue:
package.json: