Skip to content

[iOS][v41.1] Invalid Layout setting width on View #5

@ssomnoremac

Description

@ssomnoremac

Invalid layout for (27)<RCTView: 0x7fe4f2446300; reactTag: 27; frame = (0 0; 0 0); layer = <CALayer: 0x60800002f7e0>>. position: {nan, 111.25}. bounds: {{0, 0}, {nan, 222.5}}

For some reason setting the width on two or more View sibling components results in this error. Using the core RN View this isn't the case.

This and this. Real strange. Seems to affect >39.

To reproduce:

     <View flex>
        <Row flex>
          <View style={{backgroundColor: 'powderblue', width:20}}/>
          <View style={{backgroundColor: 'skyblue',  width:20}} />
          <View style={{backgroundColor: 'steelblue', width:20}}/>
        </Row>
        <View style={{backgroundColor: 'skyblue'}} flex/>
        <View style={{backgroundColor: 'steelblue'}} flex/>
      </View>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions