Skip to content

The ART '<Surface>' becomes invisible in Android #17565

Description

@alwaysonlinetxm

Is this a bug report?

Yes.

Have you read the Contributing Guidelines?

Yes.

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 8.4.0
Yarn: 1.3.2
Watchman: 4.9.0

Packages: (wanted => installed)
react-native: 0.50.1 => 0.50.1
react: 16.0.0 => 16.0.0

Target Platform: Android 7.1.1

Steps to Reproduce

  1. generate a pathh and draw if with ART, it works correctly on the first render;
  2. put the phone to sleep;
  3. awake the phone;
  4. the <Surface> area becomes invisable;

Expected Behavior

it should just look like same with the first render.

Actual Behavior

the <Surface> area becomes invisable;

Reproducible Demo

the main just like below:

<Surfacewidth={300}height={200}><Shaped={newPath().moveTo(0,0).lineTo(0,200).lineTo(300,200).lineTo(300,0).close()}fill={'#f00'}/></Surface>

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugHelp Wanted :octocat:Issues ideal for external contributors.Platform: AndroidAndroid applications.Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Resolution: PR SubmittedA pull request with a fix has been provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions