Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Theming does not work with containerStyle etc. props #14

@anshgupta1234

Description

@anshgupta1234

I am using a Card component from React Native Elements. In order to style the component, it requires one to use containerStyle. That does not work with react-native-theming. Everything that uses "style" works fine

<ThemedCard containerStyle={styles.cardContainer} image={require('../../assets/images/notecards.jpg')} imageStyle={{overflow: 'hidden', borderTopRightRadius: 15, borderTopLeftRadius: 15}} borderRadius={15}> <Theme.Text style={styles.titleText}>{text}</Theme.Text> <ThemedAppText text="Last Edited: 5 Days Ago" style={styles.lastEdited} /> <ThemedAppText text="Last Viewed: Today" style={styles.lastViewed}/> </ThemedCard>

cardContainer: { backgroundColor: '@mainColor', borderRadius: 15, height: 200, width: 150, margin: 20, flex: 1, flexDirection: 'row', justifyContent: 'center', elevation: 2, shadowColor: 'rgba(0, 0, 0, 1)', shadowOpacity: 1, shadowRadius: 1, borderColor: '@mainColor' },

export const ThemedCard = createThemedComponent(Card);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions