Posts

Showing posts with the label native-base

Content not visible native-base

Image
Content not visible native-base I have simple anatomy with header, content and footer inside container, But only header is visible and nothing visible in content (with header and content only) <Header>....</Header> <Content><Text>Some content</Text></Content> But, if I place all ie. header, content and footer. Then footer replaces header and only footer is visible. Content is not at all visible in any case. native-base -v 2.3.1 2 Answers 2 You should wrap everything in a View, with a style set like so: <View style={styles.container}> <Header>...</Header> <Content> <Text>Some content</Text> </Content> <Footer>...</Footer> </View> And then in your stylesheet: const styles = StyleSheet.create({ container: { flex: 1, // You should only need this height: '100%', // But these would...