Skip to content

[Android] onLayout not be called on <Canvas /> in release mode #3116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
doublelam opened this issue Apr 29, 2025 · 0 comments
Open
1 task done

[Android] onLayout not be called on <Canvas /> in release mode #3116

doublelam opened this issue Apr 29, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@doublelam
Copy link

doublelam commented Apr 29, 2025

Description

Hi, it seems onLayout not be called on <Canvas /> in release mode

<Canvas style={{ flex: 1 }} onLayout={onLayout}>

it works well on debug mode, but not in release mode

React Native Skia Version

"2.0.0-next.3"

React Native Version

"0.78.0"

Using New Architecture

  • Enabled

Steps to Reproduce

just test it on release mode

Snack, Code Example, Screenshot, or Link to Repository

null

@doublelam doublelam added the bug Something isn't working label Apr 29, 2025
@doublelam doublelam changed the title onLayout not be called on <Canvas /> in release mode [Android] onLayout not be called on <Canvas /> in release mode Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant