Why is the Header component adding a 1 unit border at the bottom?

Open
#3,823 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react-native
Domain
mobile

Research direction

Reproduce the issue with HeaderRNE, SafeAreaProvider, and the red View from the report using the listed React Native and RNE versions. Start at the HeaderRNE implementation and trace the default bottom border styles on iOS and Android; done means the unwanted gap is gone in both environments.

Written by the indexing model from the issue text.

Description

Needs Triage
Is there an existing issue for this?
  • I have searched the existing issues
Explain what you did
<SafeAreaProvider>
    <HeaderRNE
      centerComponent={{ text: 'Header', style: styles.heading }}
    />
    <View style={{ height: 100, backgroundColor: 'red' }}></View>
    ...
Expected behavior

No gap.

Describe the bug
border-bottom-color: rgb(242, 242, 242); 
border-bottom-width: 1px;

Why is the Header component adding a 1 unit border at the bottom, which creates a gap.
Android is the same way.
image

Steps To Reproduce
use it after installing reactnativeelements.
Screenshots

No response

Your Environment
`npx @rneui/envinfo`
@rneui/base : ^4.0.0-rc.7
@rneui/themed : ^4.0.0-rc.8
react : 18.2.0
react-native : 0.72.3
@types/react : ^18.0.24
Dominant language
MDX
Stars
25.9k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-native-elements/react-native-elements

All issues in react-native-elements/react-native-elements

Similar issues

More Mobile Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.