You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
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.
Activity
rory-pickering commentedon Jan 21, 2019
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.
kyle-ssg commentedon Oct 11, 2019
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.
kyle-ssg commentedon Oct 11, 2019
@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
[-]Plans for React Native?[/-][+]React Native?[/+]