Home > database >  How to style TextField in React Native?
How to style TextField in React Native?

Time:08-16

I am using enter image description here

What I want to achieve is the style of the first google button(from the provided image) => remove gray outline and give valid border radius.

CodePudding user response:

To remove border line, set lineType prop to none.

You can also set lineWidth props to achieve same effect.

<OutlinedTextField
  lineType="none"
  // lineWidth={0}
  // activeLineWidth={0}
  // disabledLineWidth={0}
  ...
/>
  • Related