gluestack

gluestack Logogluestack

HStack not working

ivishnu_44394 posted this in #support
Open in Discord
Avatar
ivishnu_44394OP
I have just started using gluestack-ui v2 and followed CLI documentation for the setup, but noticed HStack doesn't work unless we add flexDirection:row as style. Below is my code

<View style={{ flex: 1, marginTop: 90 }} <HStack space="lg" style={{ backgroundColor: 'red' }} > <Text>Home Page</Text> <Text>Home Page</Text> <Text>Home Page</Text> </HStack> </View>
Image

1 Reply