booyeu / react-native-reanimated-viewer

A high performance image viewer in react-native created from react-native-reanimated.
130 stars 12 forks source link

全屏查看图片时,图片如果还处于loading状态,点击屏幕,会报错 #7

Closed zc16607 closed 1 year ago

zc16607 commented 1 year ago

虚拟机会捕获错误,真机直接崩溃闪退

ReanimatedError: Tried to synchronously call a non-worklet function on the UI thread.

Possible solutions are:
  a) If you want to synchronously execute this method, mark it as a worklet
  b) If you want to execute this function on the JS thread, wrap it using `runOnJS`, js engine: reanimated

虚拟机截图 Snipaste-2023-05-08-10-34-55.png

llr101 commented 1 year ago

做了个小交互优化搞崩了 T_T,我晚上看看

llr101 commented 1 year ago

问题已修复 v1.1.1