[GH-ISSUE #185] Stretchy does not work for StyledText #119

Closed
opened 2026-05-05 11:45:16 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @zlfnhmd on GitHub (Oct 29, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/185

<Box padded>
    <StyledText stretchy={false} style={{ fontSize: 16 }}>
        This is some styled text.
    </StyledText>
    <Text stretchy={false}>
        This is some normal text.
    </Text>
</Box>

Styled text occupies the whole empty space even though stretchy is false.

Originally created by @zlfnhmd on GitHub (Oct 29, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/185 ``` <Box padded> <StyledText stretchy={false} style={{ fontSize: 16 }}> This is some styled text. </StyledText> <Text stretchy={false}> This is some normal text. </Text> </Box> ``` Styled text occupies the whole empty space even though stretchy is false.
Author
Owner

@zlfnhmd commented on GitHub (Oct 29, 2018):

@mischnic @kusti8

<!-- gh-comment-id:433909069 --> @zlfnhmd commented on GitHub (Oct 29, 2018): @mischnic @kusti8
Author
Owner

@mischnic commented on GitHub (Oct 29, 2018):

No, it doesn't. (Should be added to the docs though: https://proton-native.js.org/#/component_APIs/universal_props).

I think this is because StyledText creates an area internally and areas are always stretchy.

<!-- gh-comment-id:433950038 --> @mischnic commented on GitHub (Oct 29, 2018): No, it doesn't. (Should be added to the docs though: https://proton-native.js.org/#/component_APIs/universal_props). I *think* this is because `StyledText` creates an area internally and areas are always stretchy.
Author
Owner

@zlfnhmd commented on GitHub (Oct 30, 2018):

Can it be fixed to allow the stretchy prop?

<!-- gh-comment-id:434193844 --> @zlfnhmd commented on GitHub (Oct 30, 2018): Can it be fixed to allow the stretchy prop?
Author
Owner

@kusti8 commented on GitHub (Jan 19, 2020):

Proton Native V2 is now released! If the issue still occurs in the new update, please open a new issue.

<!-- gh-comment-id:576029373 --> @kusti8 commented on GitHub (Jan 19, 2020): Proton Native V2 is now released! If the issue still occurs in the new update, please open a new issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#119
No description provided.