Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling the border #133

Open
mxmzb opened this issue Aug 30, 2020 · 6 comments
Open

Styling the border #133

mxmzb opened this issue Aug 30, 2020 · 6 comments

Comments

@mxmzb
Copy link

mxmzb commented Aug 30, 2020

Question

Is it possible to change the style of the borders (or remove them altogether) above and below the selected item? If yes, how do you do that?

@VictorPascu
Copy link

Found this on another answer, but you can do something like:

<View style={{ borderRadius: 15, borderWidth: 0, overflow: "hidden", height: 15, padding: 0, backgroundColor: "#FFF" }}> <Picker> (...) </Picker> </View>

So that the view takes precedence and clips any excess from the picker.

@glennreyes
Copy link

It seems that the native properties for the selection indicator styles aren't bridged over yet.

Related:

@osvaldokalvaitir
Copy link

On Android this solution was horrible, the text has a padding or a margin that gets huge if you put a border

@llaver
Copy link

llaver commented Oct 14, 2021

Still completely broken.

@ajunior-hes
Copy link

still without solution?

@BerkayAkgurgen
Copy link

BerkayAkgurgen commented Jul 17, 2024

You can hide the border with outline.

outline: 1px solid red;
outline-offset: -1px;
border: none;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants