Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Views as separator lines (or borders) are being cut if height is less than 1dp - React Native

I have a 3 titles on Text's components and a divider below each one as View's components. They have the following styles.

title: {
    ...PosText,
    color: Palette.TEXT_ON_LIGHT,
    paddingBottom: 9,
  },
  divider: {
    height: 0.5,
    backgroundColor: Palette.BACKGROUND_DIVIDERS,
    marginBottom: 1,
  },

I should see the title and a line divider beneath them but the first divider gets lost.

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can create a quick SeparatingLine component and set the borderWidth as you wish (add margins as needed). I am using something like this in my project:

export default class SeparatingLine extends Component {

  render() {
    return (
        <View style={styles.separatingLine} />
    )
  }
}

const styles = StyleSheet.create({
  separatingLine: {
    borderWidth: 0.5,
    borderColor: 'grey',
  },
});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!