ui
ui copied to clipboard
Text Component - Failed prop type: Invalid prop `style` of type `number`
Hi,
When I'm trying to style a Shoutem
ExceptionsManager.js:82 Warning: Failed prop type: Invalid propstyleof typenumbersupplied toStyled(AnimatedComponent), expectedobject.
Example code:
<Text style={styles.upNext}> Hello world!</Text>
const styles = StyleSheet.create({
upNext:{
textAlign:"center",
fontSize:20
}
});
https://github.com/shoutem/ui/issues/51
Our components do not function with styles created with StyleSheet.create.