React Native functional component doesn't update when props change
I have a functional component ViewAlarms that stores the alarm in an objects array using use state, and another functional component AlarmCard that is responsible for rendering the cards that hold the main info of an alarm. the ViewAlarms Component…