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

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

Open jagorrin opened this issue 6 years ago • 8 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 Picker in a project using React Native Windows
  2. Apply a style containing "borderRadius"
  3. Observe that the Picker does not have rounded corners

Example code:

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

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

render() {
    return (
          <Picker style={styleSheet.roundedCorners}>
                <Picker.Item label="Any" value="Any" />
          </Picker>
     );
}

Expected Behavior

I expected the Picker 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: snip1

jagorrin avatar Dec 17 '19 22:12 jagorrin

@jagorrin We recently changed react-native-windows to bring in WinUI2.3 which should include various fixes for border radius. Can you update to the latest version and let us know if this is fixed or not for you? @licanhua if you happen to know the version number that adds this can you add a note here?

chrisglein avatar Jan 06 '20 19:01 chrisglein

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 14 days of this comment.

ghost avatar Jan 13 '20 20:01 ghost

@licanhua Can you provide the version number when the upgrade to WinUI2.3 occurred?

jagorrin avatar Jan 13 '20 20:01 jagorrin

PR that added it is here: https://github.com/microsoft/react-native-windows/pull/3707, from November 7th. @kmelmon do you know how to get from a commit to the version number that will include that?

chrisglein avatar Jan 23 '20 23:01 chrisglein

@chrisglein currently, every change triggers a publish to npm so if it's checked in, it's already out there.

kmelmon avatar Jan 24 '20 19:01 kmelmon

You can also look at the change log: https://github.com/microsoft/react-native-windows/blob/master/vnext/CHANGELOG.md#0600-vnext86

Admittedly the change log info entered on that change wasn't particularly descriptive.

acoates-ms avatar Jan 24 '20 21:01 acoates-ms

Thank you. I will test on 0.60.0-vnext.86.

jagorrin avatar Jan 24 '20 21:01 jagorrin

This is working for me now as of 0.60.0-vnext.86. Thanks!

jagorrin avatar Feb 05 '20 23:02 jagorrin