How to use the react-native-windows.AppTheme.removeListener function in react-native-windows

To help you get started, we’ve selected a few react-native-windows examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / react-native-windows / vnext / src / RNTester / js / ThemingExample.windows.tsx View on Github external
componentWillUnmount() {
    AppTheme.removeListener('appThemeChanged', this.onAppThemeChanged);
  }
github microsoft / react-native-windows / vnext / src / RNTester / js / AccessibilityExampleWindows.tsx View on Github external
componenetWillUnmount() {
    AppTheme.removeListener('highContrastChanged', this.onHighContrastChanged);
    AppTheme.removeListener('appThemeChanged', this.onAppThemeChanged);
  }
github microsoft / react-native-windows / vnext / src / RNTester / js / AccessibilityExampleWindows.tsx View on Github external
componenetWillUnmount() {
    AppTheme.removeListener('highContrastChanged', this.onHighContrastChanged);
    AppTheme.removeListener('appThemeChanged', this.onAppThemeChanged);
  }