How do I change state of another component from different component in react native?
I am creating a todo app in which a dialog is to be shown when button is clicked and when the button cancel is clicked it need to be dismissed. I have two components which are: AddTodo.js import { Modal,…