I am trying to prevent the user from entering screen number 2, and I succeeded in that by controlling the screenIndex variable , but in all cases the nav button is activated and its state changes! .
How can I prevent the nav but from changing its state.
Note : i already tried to set active to false .
I am trying to prevent the user from entering screen number 2, and I succeeded in that by controlling the
screenIndex
variable , but in all cases the nav button is activated and its state changes! . How can I prevent the nav but from changing its state. Note : i already tried to setactive
tofalse
.