wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.44k stars 706 forks source link

setComponentTheme doesn't work with hot reload #2543

Closed aminta closed 1 year ago

aminta commented 1 year ago

Description

Wether I execute setComponentTheme() in index.js, app.tsx or within a custom component wrapper (ie: "MY Button"), if I change some value this is not reflected in hot reload. I have to fully reload Metro to make it work.

Related to

More Info

Code snippet

hemeManager.setComponentTheme('Button', (props, context) => {
    return {
      borderRadius: 10,
      paddingHorizontal: 120,
      backgroundColor: props.paypal ?'yellow' : 'red',
    };
  });

Screenshots/Video

Environment

Affected platforms

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.