Skip to content

[Image] padding not work #16164

Closed
Closed
@walfud

Description

@walfud

Environment:
OS: macOS Sierra 10.12.6
Node: 8.6.0
Yarn: 1.1.0
npm: 5.3.0
Watchman: Not Found
Xcode: Not Found
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: 0.48.3 => 0.48.3

====================

I just write the simple code below. The problem is Why the padding in style not work?

            <View style={{
                flex: 1,

            }}
            >
                <Image style={{
                    flex: 1,
                    padding: 10,
                }}
                       source={{uri: 'd7'}}
                       resizeMode='stretch' />
            </View>

This is the result. You can see there is no padding around image.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions