Skip to content

Flicker only on new arch #2663

@faljabi

Description

@faljabi

Description

I am facing an flicker as shown in the attached video when an input inside a View with flex = 1 and alignItems and justContent is 'center'. I noticed also it is happening with other screens without text inputs. Switching back to old arch is resolving the issue.

As a hack on new arch, If I remove flex = 1 and use paddingTop for example to center my content it is working fine.

Any hints please?

Steps to reproduce

  1. Place some label and input in the center using flex = 1 and alignItems, justContent = 'center'.
  2. Focus the input
  3. Notice the flicker only on new arch

Snack or a link to a repository

https://snack.expo.dev/gSa8VH--zqkIt0i8aZsZw

Screens version

4.5.0

React Native version

0.76.6

Platforms

iOS, Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Real device

Device model

iPhone 16 Pro Max, Android Pixel 2

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

platform:androidIssue related to Android part of the libraryplatform:iosIssue related to iOS part of the libraryrepro-providedA reproduction with a snack or repo is provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions