-
Notifications
You must be signed in to change notification settings - Fork 618
Closed
Labels
Description
💬 前提强调
- I have searched the issues of this repository and believe that this is not a duplicate.
🙋 描述详情/重现步骤
环境:
- "expo": "~53.0.7"
- "react": "19.0.0"
- "@ant-design/react-native": "^5.4.1"
- "react-native-reanimated": "~3.17.5"
问题:
CheckboxItem 的 indeterminate 属性勾选后 reanimated 报错:
ERROR Warning: Invariant Violation: Transform with key of "scale" must be a number: {"scale":0}
This error is located at:
121 | */
122 | export const CheckboxGroup: React.FC<CheckboxGroupProps> = ({
> 123 | onPick,
| ^
124 | data,
125 | pickedItems,
126 | ...props
Call Stack
TouchableHighlight (<anonymous>)
Wrapper (<anonymous>)
CheckboxGroup (src/components/picker/multiPicker.tsx:123:9)
AnimatedSlideIn (src/components/animatedView/AnimatedSlide.tsx:23:7)
AnimatedOpacity (src/components/animatedView/AnimatedOpacity.tsx:24:30)
ModalBack (src/components/modal/index.tsx:280:16)
Modal (src/components/modal/index.tsx:35:7)
PortalRoot (src/components/portal/index.tsx:28:13)
RNGestureHandlerRootView (<anonymous>)
RootLayout (src/app/_layout.tsx:21:43)
RNCSafeAreaProvider (<anonymous>)
App (<anonymous>)
ErrorOverlay (<anonymous>)
不勾选该属性则无报错
🔴 版本
5.4.1
💻 运行环境
Expo
⚫️ npx react-native info输出信息
"devDependencies": {
"@react-native-community/cli": "latest",
}
补充说明
No response