Is there an existing issue for this?
Describe the issue
export default function App() {
return (
<View style={styles.container}>
<Text>
Change code in the editor and watch
</Text>
<Text>
Change code in the editor and watch
</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
},
});
Expected behavior
Text is rendered and compressed identically to native.
Steps to reproduce
https://snack.expo.dev/@exzos28/dda754
Test case
https://snack.expo.dev/@exzos28/dda754?platform=web
Additional comments
With flexDirection: ‘row’ in the parent component, child elements (text) behave differently.
It appears that flexShrink: 0, which is the default in React Native, is omitted for Text.