Last active
August 29, 2024 21:21
-
-
Save pablocattaneo/d8dd0b9eb82fba3d7da5263296677c26 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set flexShrink in Style: This property allows the text to shrink in order to fit its container. | |
<View style={{ flexDirection: 'row', width: 100 }}> | |
<Text style={{ flexShrink: 1 }}>This is some long text that might overflow its container.</Text> | |
</View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment