Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

Could not add custom controls to storybooks in react-native

$
0
0

I am trying to add custom controls to storybook to switch the template. I get no error but I can't see the actions.

export const decorators = [withThemeProvider];export const globalTypes = {  theme: {    name: 'Toggle theme',    description: 'Global theme for components',    defaultValue: 'light',    toolbar: {      icon: 'circlehollow',      items: ['light', 'dark'],      showName: true,      dynamicTitle: true    }  }}const preview = {  parameters: {    controls: {      matchers: {        color: /(background|color)$/i,        date: /Date$/,      },    },  },};export default preview;

Viewing all articles
Browse latest Browse all 12141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>