glamorous-native
glamorous-native copied to clipboard
Exception on Text rendering
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:

Hey @schneck -- would you mind sharing a repository containing a sample of this problem? I wasn't able to reproduce this locally
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.