会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chaosfe
博客园
首页
新随笔
联系
订阅
管理
Attempted to transition from state `RESPONDER_INACTIVE_PRESS_IN` to `RESPONDER_ACTIVE_LONG_PRESS_IN`
Attempted to transition from state
RESPONDER_INACTIVE_PRESS_IN
to
RESPONDER_ACTIVE_LONG_PRESS_IN
, which is not supported. This is most likely due to
Touchable.longPressDelayTimeout
not being cancelled.
最近在RN中使用TouchableOpacity组件里使用onPress方法时,报以上错误,原因是因为自己把代码直接写在了onPress中,把代码放进函数在onPress中调用即可
posted @
2022-04-09 21:14
一颗小行星-
阅读(
21
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
公告