question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Header with tabs showing shadow between

See original GitHub issue

Issue Description

When adding a header with tabs, it is showing a shadow between the header and the tabs.

header with tabs

node, npm, react-native, react and native-base version, expo version if used

$ node -v v8.10.0

$ npm ls --depth 0 testApp@0.0.1 /home/david/dev/testApp ├── @babel/runtime@7.1.2 ├── babel-jest@23.6.0 ├── jest@23.6.0 ├── metro-react-native-babel-preset@0.48.1 ├── native-base@2.8.1 ├── react@16.5.0 ├── react-native@0.57.1 └── react-test-renderer@16.5.0

Expected behaviour

There should be no shadow between Header and Tabs

Steps to reproduce

I’ve included a base code to test this.

import React, { Component } from 'react';
import {
  AppRegistry, Text, View
} from 'react-native';
import { Header, Container, Body, Title, Tabs, Tab } from 'native-base';

class App extends Component {
  render() {
    return (
      <Container>
        <Header hasTabs>
          <Body>
            <Title>
              <Text>Header title</Text>
            </Title>
          </Body>
        </Header>
        <Tabs>
          <Tab heading="Tab 1">
            <View>
              <Text>Tab 1 content</Text>
            </View>
          </Tab>
          <Tab heading="Tab 2">
            <View>
              <Text>Tab 1 content</Text>
            </View>
          </Tab>
        </Tabs>
      </Container>
    );
  }
}

AppRegistry.registerComponent('testApp', () => App);

Is the bug present in both iOS and Android or in any one of them?

Only tested on Android

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
ShinsukeWatanabecommented, Nov 19, 2018

@davidrojo

<Tabs
  ...
  style={Platform.OS === 'android' ? { overflow: 'hidden' } : null}
>
1reaction
davidrojocommented, Nov 20, 2018

@ShinsukeWatanabe Thanks, this works fine in android

Read more comments on GitHub >

github_iconTop Results From Across the Web

WPF: Get rid of shadow in tab headers - Stack Overflow
The style for the TabItems cause the tab headers to have a shadow. I don't want that shadow. Is there a way to...
Read more >
Remove bottom border or shadow on header in React ...
By default, the Stack and Tab Navigators in this library add a header on a screen. This header has a default bottom border...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Note: Shared Tab Groups and syncing for Tab Groups, Website Settings, ... Added support for “Get Element Shadow Root”, “Find Element From Shadow...
Read more >
Ion-Tabs: Tab-Based Component for App Top-Level Navigation
Interfaces; Usage; Properties; Events; Methods; CSS Shadow Parts ... It does not provide any UI feedback or mechanism to switch between tabs.
Read more >
Tabs | Dash for Python Documentation | Plotly
We also added display: flex and justify-content: center to the regular Tab components, so that labels with multiple lines will not break the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found