Skip to content

Error when using Select on MacOS #5574

@josh-thompson13

Description

@josh-thompson13

Description

When using the select component on MacOS a render error is thrown

CodeSandbox/Snack link

https://snack.expo.dev/J8g7pVAuA

Steps to reproduce

The below code works on all devices except macos. The error thrown is, "Text strings must be rendered within a component.

<Select minWidth="200" accessibilityLabel="Choose Service" placeholder="Choose Service" _selectedItem={{ bg: "teal.600", endIcon: <CheckIcon size={5} /> }} mt="1"> <Select.Item label="UX Research" value="ux" /> <Select.Item label="Web Development" value="web" /> <Select.Item label="Cross Platform Development" value="cross" /> <Select.Item label="UI Designing" value="ui" /> <Select.Item label="Backend Development" value="backend" /> </Select>

NativeBase Version

3.4.22

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

MacOS

Additional Information

Please note this is code taken directly from the native base select example

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions