GeekyAnts / GeekyAnts/NativeBase
WARN "We can not support a function callback..."
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### 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 (
setValues(v)} defaultValue={values}>
Test
{values}
);
};
```
### NativeBase Version
3.4.7
### Platform
- [X] Android
- [ ] CRA
- [ ] Expo
- [X] 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
Contributor guide
Research direction
Start by reproducing the warning with the minimal Checkbox.Group example on Android or iOS, then read the referenced react-spectrum issue for context. Trace the Checkbox.Group callback path and identify why this usage emits the warning. Done means the example no longer warns when the checkbox is clicked, with a regression test covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100