Skip to content

Cannot Add a child that doesn't have a YogaNode to a parent with out a measure function #20225

Closed

Description

@softglance

The app works on IOS emulator but it gives error on android mobile.

Environment

Run react-native info in your terminal and paste its contents here.

nvironment:
OS: macOS High Sierra 10.13.6
Node: 8.11.3
Yarn: 1.7.0
npm: 6.1.0
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed)
react: 16.4.1 => 16.4.1
react-native: https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz => 0.55.4

Description

Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

Activity

  1. softglance commented on Jul 19, 2018

    @softglance
    Author

    With different approach and re-organising the components the issue is no more occurring.

  2. locked as resolved and limited conversation to collaborators on Jul 19, 2019
  3. added
    Resolution: Locked
    on Jul 19, 2019
  4. elicwhite commented on Jan 8, 2020

    @elicwhite
    Contributor

    Sorry for the long wait but I think the fix for this just landed.

    We were able to repro and fix this issue with this sample code:

    function PlaygroundContent(props: {}) {
      return (
        <View>
          <Text>
            <View style={{width: 10, height: 10}}>
              <Image source={ANY_IMAGE_SOURCE} />
            </View>
          </Text>
        </View>
      );
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: Locked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions