Skip to content

Image nested views inherit backgroundColor style from Image #763

@aliaksandr-kazarez

Description

@aliaksandr-kazarez

In following code snippet, if i set backgroundColor for Image, Text inherits it's value and covers section of image

var view = React.createClass({
    render: function() {
        return (
            <Image
                source={require("image!image")}
                style={{width: 300, height: 400, backgroundColor: "#FFDDCC"}}
                >
            <Text>TSDGFSDF</Text>
            </Image>
        )
    }
});

"react-native": "~0.3.8"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions