GeekyAnts / GeekyAnts/NativeBase

Stack doesn't skip space with custom component return a fragment

Open
#5,301 7 comments 0 reactions 1 assignee Claimed by @ankit-tailor View on GitHub
bug v3
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
![Group](https://user-images.githubusercontent.com/20625911/186558949-33aad6fe-26f3-45da-809d-65e981b5fa53.png)

### NativeBase Version

3.4.13

### Platform

- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next

### Other Platform

_No response_

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.