Skip to content

How to remove the border in picker in iOS.  #28766

Closed

Description

@nihp

I need to remove the border which shown default from the picker. I have designed the border grey color with 1.5 boderWidth. But it shows a border in a thin line. Kindly refer the attached image. Any solution

import { Picker } from 'react-native';

<View style={{display: 'flex', flexDirection: 'row',borderColor:"transparent",	alignItems: 'center',marginBottom:13,}}>
            <Picker
              style={{paddingHorizontal: 1,  borderWidth:1.5, borderRadius:4,borderRightWidth:1, borderColor: isValidNumber ? 'grey': 'red', color: 'red', flex:0.5}}
              itemStyle={{height: 47,backgroundColor: "white",borderColor:"transparent",fontSize: 15, fontWeight:'400'}}
            >
              <Picker.Item style={{borderColor:"transparent"}} key={dialCode} value={dialCode} label={dialCode} />
          </Picker>
<View>

Screenshot 2020-04-27 at 7 46 26 PM

Activity

  1. added
    Platform: iOS
    Needs: Environment Info
    and removed on Apr 27, 2020
  2. github-actions commented on Apr 27, 2020

    @github-actions
    ⚠️ Missing Environment Information
    ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.
  3. stale commented on Jul 26, 2020

    @stale

    Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

  4. added
    Stale
    on Jul 26, 2020
  5. stale commented on Aug 2, 2020

    @stale

    Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

  6. nihp commented on Aug 3, 2020

    @nihp
    Author

    The above is still an issue

  7. added
    Needs: Attention
    and removed on Aug 3, 2020
  8. karimcambridge commented on Sep 15, 2020

    @karimcambridge

    Yea, we we should be able to do this

  9. nihp commented on Sep 15, 2020

    @nihp
    Author

    @karimcambridge Kindly let me know if you have any solution

  10. karimcambridge commented on Sep 15, 2020

    @karimcambridge

    @karimcambridge Kindly let me know if you have any solution

    Lol no.

    I got the bottom border looking part removed. The top.. nope. Seems like thats built in...

  11. locked as resolved and limited conversation to collaborators on Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionNeeds: Environment InfoPlatform: iOSStale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions