setState doesn't update state variable - React Native hooks

前端 未结 0 1538
谎友^
谎友^ 2020-12-31 03:42

I\'m using the state variable to keep track of my previous state.

The animation works (without index), but when I do

const [index, setIndex] = useState         


        
相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题