How to use the fela-bindings.createTheme function in fela-bindings

To help you get started, we’ve selected a few fela-bindings 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 robinweser / fela / packages / fela-enzyme / src / mergeOptions.js View on Github external
return {
    childContextTypes: {
      ...childContextTypes,
      [THEME_CHANNEL]: PropTypes.object,
      renderer: PropTypes.object,
    },
    contextTypes: {
      ...contextTypes,
      [THEME_CHANNEL]: PropTypes.object,
      renderer: PropTypes.object,
    },
    context: {
      ...context,
      renderer,
      [THEME_CHANNEL]: theme ? createTheme(theme) : null,
    },
    ...otherOptions,
  }
}