react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

iOS Large Title noBorder doesn't remove bottom border

Open AdamLee321 opened this issue 3 years ago • 6 comments

🐛 Bug Report

I am trying to hide the bottom border for large titles but noBorder doesn't work for large titles. I have also tried setting the borderColor and borderHeight but this doesn't work for large titles.

To Reproduce

topBar: {
      largeTitle: {
        visible: true,
        color: '#222222',
      },
      noBorder: true,
      background: {
        color: 'white',
        translucent: false,
      },
 },

Expected behavior

noBorder should show noBorder for largeTitles.

Actual Behavior

noBorder shows a border for largeTitles.

Screenshot 2021-01-28 at 10 49 44 Screenshot 2021-01-28 at 10 49 56

Your Environment

  • React Native Navigation version: 7.8.4
  • React Native version: 0.61.5
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): iPhone 11 13.5

AdamLee321 avatar Jan 28 '21 10:01 AdamLee321

please add code in TopBar:{ scrollEdgeAppearance: { noBorder:true, }, ... other code }

binkerxbc avatar Feb 04 '21 17:02 binkerxbc

@binkerxbc it seems that OP has already tried that.

a-eid avatar Feb 08 '21 05:02 a-eid

+1 on this issue

aa-io avatar Mar 19 '21 18:03 aa-io

setting translucent: true works for me:

background: {
   color: 'white',
   translucent: true,
   blur: false
}

cohen72 avatar Jul 21 '21 11:07 cohen72

This seems to happen even on screens which do not have scrollable content. Seemingly on iOS 15 devices but not on iOS 14.

Thin line shown under header (bug): image

  static options() {
    return {
      topBar: {
        title: {
          text: 'Page Title',
        },
        noBorder: true,
      },
    }
  }

Thin line hidden: image

  static options() {
    return {
      topBar: {
        title: {
          text: 'Page Title',
        },
        noBorder: true,
        scrollEdgeAppearance: {
          noBorder: true,
        },
      },
    }
  }

React native v0.66.3 react-native-navigation v7.23.1

cjpete avatar Nov 29 '21 11:11 cjpete

This seems to happen even on screens which do not have scrollable content. Seemingly on iOS 15 devices but not on iOS 14.

Thin line shown under header (bug): image

  static options() {
    return {
      topBar: {
        title: {
          text: 'Page Title',
        },
        noBorder: true,
      },
    }
  }

Thin line hidden: image

  static options() {
    return {
      topBar: {
        title: {
          text: 'Page Title',
        },
        noBorder: true,
        scrollEdgeAppearance: {
          noBorder: true,
        },
      },
    }
  }

React native v0.66.3 react-native-navigation v7.23.1

thanks. it's work for me <3

trancongdung12 avatar May 13 '22 06:05 trancongdung12