Skip to content
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

[console warn] "textAlignVertical" style is deprecated. Use "verticalAlign" #2587 #4112

Open
1 task done
sohil-drooar opened this issue Oct 4, 2023 · 4 comments
Open
1 task done
Assignees
Labels
bug dependencies Pull requests that update a dependency file

Comments

@sohil-drooar
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Issue Title: Deprecation Warning: 'textAlignVertical'

Description:
The 'textAlignVertical' style is deprecated and should be replaced with 'verticalAlign' in our codebase. This deprecation warning is affecting our application's styling and should be resolved.

Expected behavior

Expected Behavior:
The deprecation warning should be resolved by replacing 'textAlignVertical' with 'verticalAlign' in the affected code.

  • "textAlignVertical" style is deprecated. Use "verticalAlign".
  • props.pointerEvents is deprecated. Use style.pointerEvents
  • "shadow*" style props are deprecated. Use "boxShadow".
  • "transform" style array value is deprecated. Use space-separated string functions, e.g., "scaleX(2) rotateX(15deg)".
  • accessibilityRole is deprecated. Use role.
  • editable is deprecated. Use readOnly.
  • selectable prop is deprecated. Use styles.userSelect.

Steps to reproduce

Steps to Reproduce:

  1. Open the application.
  2. run test case using jest
  3. Observe the console for deprecation warnings.

Test case

https://codesandbox.io/s/holy-fog-2qdp8w

Additional comments

Additional Information:

  • Environment: [React Native, React Native Web]
  • Version: ["react-native-web": "^0.19.9", ]
Screenshot 2023-10-04 at 5 41 34 PM
@lukewalczak lukewalczak added the dependencies Pull requests that update a dependency file label Oct 4, 2023
@Alwinseb01
Copy link

Hi, I would like to work on this

@lukewalczak
Copy link
Member

Hey Folks, please hold off on working on this issue for now. We need to thoroughly investigate it and make a decision on how to approach it. I will assign myself to have it on the radar.

@lukewalczak lukewalczak self-assigned this Oct 6, 2023
@lukewalczak
Copy link
Member

Hey @sohil-drooar, are you able to suppress warnings using LogBox as an interim solution:

LogBox.ignoreLogs(['Warning: ...']);

@mathias-berg
Copy link
Contributor

Hi @lukewalczak , any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

4 participants