glamorous-native icon indicating copy to clipboard operation
glamorous-native copied to clipboard

Exception on Text rendering

Open oertels opened this issue 7 years ago • 2 comments

Hi there,

I'm running into a problem when rendering a Text component.

Simple example:

Component file:

import glamorous from 'glamorous-native';
export const Headline = glamorous.text();

In my parent component file:

<Headline>Some error</Headline>

Versions:

  • glamorous-native version: 1.1.0
  • react-native version: 0.45.0
  • react version: 16.0.0-alpha.12

Result:

oertels avatar Jun 20 '17 11:06 oertels

Hey @schneck -- would you mind sharing a repository containing a sample of this problem? I wasn't able to reproduce this locally

atticoos avatar Jun 20 '17 16:06 atticoos

Actually I think I found the issue. My glamorous component has a prop "theme":

Headline.propTypes = {
  theme: PropTypes.oneOf(['white', 'green', 'grey', 'darkgrey', 'error']),
};

When I omit it, it works.

oertels avatar Jun 22 '17 06:06 oertels