ui icon indicating copy to clipboard operation
ui copied to clipboard

Text Component - Failed prop type: Invalid prop `style` of type `number`

Open tomardern opened this issue 10 years ago • 2 comments

Hi,

When I'm trying to style a Shoutem component, I get the following error:

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
    }
});

tomardern avatar Oct 09 '16 16:10 tomardern

https://github.com/shoutem/ui/issues/51

SoHotSoup avatar Oct 09 '16 20:10 SoHotSoup

Our components do not function with styles created with StyleSheet.create.

tenodi avatar Oct 27 '16 12:10 tenodi