Skip to content

Radio control type not working in both Mobile and Web #308

@Karthik-B-06

Description

@Karthik-B-06

Describe the bug

Having a radio type control to work with both Mobile and Web but having to control type: 'radio' works on the web and type: 'radios' works on mobile.

Expected behavior
A single control type (either 'radio' or 'radios') working on both Mobile and Web.

Screenshots
image

Code snippets
This code works on mobile.

  argTypes: {
    size: {
      options: <size_options>,
      control: { type: 'radios' },
    },
  },

This works for the web.

  argTypes: {
    size: {
      options: <size_options>,
      control: { type: 'radio' },
    },
  },

System:

    "@storybook/addon-ondevice-actions": "^6.0.1-alpha.7",
    "@storybook/addon-ondevice-backgrounds": "^6.0.1-alpha.7",
    "@storybook/addon-ondevice-controls": "^6.0.1-alpha.7",
    "@storybook/addon-ondevice-notes": "^6.0.1-alpha.7",
    "@storybook/addon-react-native-web": "^0.0.14",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions