-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to render <View> with no fixed size nested within a <Text>
Summary: This diff fixes the redbox error: Views nested within a <Text> must have a width and height This error is reproducible when rendering a View with no fixed size, inside a <Text>. e.g. ``` function PlaygroundContent(props: {}) { return ( <View style={styles.container}> <Text> <View> <Image source={fbicon.filled('chevron-down', 10)} /> </View> </Text> </View> ); } ``` changelog: Add support to render <View> with no fixed size nested within a <Text> Reviewed By: shergin Differential Revision: D19387760 fbshipit-source-id: a9cee8410e56a2d362d6b8f993e602719c416925
- Loading branch information
1 parent
7e3a43c
commit dbb7eac
Showing
3 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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