Skip to content

Yoga child's does not respect the width or justify-content #57

Open
@vallemar

Description

@vallemar

I am tested designs with yoga and it is not respecting the width of the children, put the width that you put always occupies 100% of the father. here is what i'm trying to do

    <View
          style="
        flex: 1;
        width: 500;
        height: 500;
        justify-content: space-between;
        align-items: flex-start;
        padding: 20;
        background: black"
      >
        <View style="flex: 1; width: 10; height: 100; background: red"/>
        <View style="flex: 1; width: 10; height: 100; background: blue"/>
      </View>

it looks like this
image

and it should look like this
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions