使用react-native-drawer,跟着官网配置仍报错,Error: [Reanimated] `valueUnpacker` is not a worklet, js engine: hermes
摘要:在使用react-native-drawer组件时,编译项目报错 试了许多的方法,最后通过在一篇博客中找到解决方法https://blog.csdn.net/lxyoucan/article/details/121851577 因为在使用react-native-drawer时也需要使用react-
阅读全文
posted @
2023-10-30 12:27
九零菜菜
阅读(142)
推荐(0) 编辑
给react native 添加transform translateY动画报错:Transform with key of "translateY" must be a number:{translateY“:0}
摘要:初学react native,想实现一个相机扫描功能时,报错,报错描述如标题 这是我的主要逻辑代码 const fadeAnim = useRef(new Animated.Value(0)).current; const move = () => { fadeAnim.setValue(0); A
阅读全文
posted @
2023-10-25 13:30
九零菜菜
阅读(125)
推荐(0) 编辑
css设置backgroud:url(),无效
摘要:react项目中,使用styled-components编写样式,给元素添加背景图不生效。 background直接设置十六进制颜色或者颜色的英文名称都是可行的,但是使用url无作用,那就是url问题了,于是我想换一种思路,能不能把图片import进来,放进url里,避免错误的路径呢,于是 哎嘿,好
阅读全文
posted @
2023-10-18 12:09
九零菜菜
阅读(139)
推荐(0) 编辑