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

TextInput does not have rounded corners when "borderRadius" style is used

Open jagorrin opened this issue 6 years ago • 2 comments

Environment

  1. react-native -v: react-native-cli: 2.0.1 react-native: 0.60.6
  2. npm ls rnpm-plugin-windows: [email protected]
  3. npm ls react-native-windows: [email protected]
  4. node -v: v10.15.0
  5. npm -v: 6.13.1

Then, specify:

  • Target Platform Version(s): 10.0.18362.0
  • Target Device(s): Desktop
  • Visual Studio Version: 2017
  • Build Configuration: Debug

Steps to Reproduce

  1. Create a TextInput in a project using React Native Windows
  2. Apply a style containing "borderRadius"
  3. Observe that the TextInput does not have rounded corners

Example code:

import { TextInput, StyleSheet } from "react-native";

const styleSheet = StyleSheet.create({
    roundedCorners: {
        borderRadius: 16,
    },
});

render() {
    return <TextInput style={styleSheet.roundedCorners} />;
}

Expected Behavior

I expected the TextInput to have rounded corners using the supplied border radius.

Actual Behavior

Applying the "borderRadius" style did not visually change the box. It still has rounded corners.

Screenshot: snip

jagorrin avatar Dec 07 '19 00:12 jagorrin

Another issue with rounded corners similar to https://github.com/microsoft/react-native-windows/issues/3456.

kmelmon avatar Dec 09 '19 19:12 kmelmon

Fixed for RS5 plus.

ddalp avatar Dec 20 '19 05:12 ddalp