Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

React Native? #32

Open
Open

Description

@rammoozz

are there any plans for bringing smart knobs over to React Native Storybook? (onDevice Addons)

Activity

  1. rory-pickering commented on Jan 21, 2019

    @rory-pickering

    I assumed this would work out of the box - unless we're both missing something i can get knobs to work but not smart knobs 👎
    so +1 for this.

  2. kyle-ssg commented on Oct 11, 2019

    @kyle-ssg

    Doing a bit of research on this I can see the difference is __docgenInfo is undefined in react-native. Can write a workaround for this, but I'm going to try and figure out why this is the case first.

  3. kyle-ssg commented on Oct 11, 2019

    @kyle-ssg

    @rkhayat @rory-pickering Although this is a workaround, I've got this working for react native here https://github.com/kyle-ssg/addon-smart-knobs. Basically I've added my own parser for prop types as there's docgen support in React Native.

    Parsing prop types
    https://github.com/kyle-ssg/addon-smart-knobs/blob/master/dist/index.js#L17

    Using the parser
    https://github.com/kyle-ssg/addon-smart-knobs/blob/master/dist/index.js#L269

  4. changed the title [-]Plans for React Native?[/-] [+]React Native?[/+] on Oct 28, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions