GeekyAnts / GeekyAnts/NativeBase
Stack doesn't skip space with custom component return a fragment
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Stack doesn't skip space with custom component return a fragment
### CodeSandbox/Snack link
https://snack.expo.dev/@giaptran/biased-cookie
### Steps to reproduce
const CustomBox = (props: CustomBoxPops) => {
const { visible, title, ...rest } = props;
if (!visible) {
return ;
}
return {title};
};
In case a custom component returns a fragment then Stack can not skip space

### NativeBase Version
3.4.13
### Platform
- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next
### Other Platform
_No response_
### Additional Information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.