WARN "We can not support a function callback..."
Author: Brma1048Created Jun 23, 2022Updated Sep 30, 2024
Labelsbugv3triage
Description
We expected no console warning with minimal Checkbox.Group usage.
CodeSandbox/Snack link
no link
Steps to reproduce
export const CheckboxScreen = () => {
const [values, setValues] = useState(['test']);
return (
<View>
<Checkbox.Group onChange={v => setValues(v)} defaultValue={values}>
<Checkbox value={'test'}>Test</Checkbox>
</Checkbox.Group>
<Text>{values}</Text>
</View>
);
};NativeBase Version
3.4.7
Platform
- Android
- CRA
- Expo
- iOS
- Next
Other Platform
No response
Additional Information
We are getting following warning "WARN We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320" when clicking the checkbox in the group. Without checkbox group there is no warning. Is this an issue or are we doing something wrong?
Versions:
- react-native: 0.67.4
Source: GeekyAnts/NativeBase