Skip to content

Picker component unimplemented #202

Open

Description

@eugbash

It would be great to have the Picker component on macos that renders the native picker component (https://facebook.github.io/react-native/docs/picker.html).
Do you have any plans to implement this?

Activity

  1. ptmt commented on Jul 3, 2018

    @ptmt
    Owner

    Do you mean https://developer.apple.com/documentation/appkit/nscombobox? As far as I know, I tried to implement it before, need to investigate if it's available.

  2. eugbash commented on Jul 4, 2018

    @eugbash
    Author

    Exactly.
    Yes, I found it at /Libraries/Picker/PickerIOS.macos.js
    I was confused as the render method in /Libraries/Components/Picker/Picker.js returned <UnimplementedView />.

    Updating its condition to
    if (Platform.OS === 'ios' || Platform.OS === 'macos') {
    // $FlowFixMe found when converting React.createClass to ES6
    return <PickerIOS {...this.props}>{this.props.children}</PickerIOS>;
    }
    fixed the issue.

    However, NSComboBox seems to render not quite right (please, see the image below).
    nscombobox

  3. ptmt commented on Jul 7, 2018

    @ptmt
    Owner

    Thanks for your feedback!
    If you had time to send PR with this (even unfinished) that would be extremely helpful, I'll try to see what's happening with the rendering.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions