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

[HOLD] warning: setNativeProps is deprecated #26989

Closed
marcaaron opened this issue Sep 7, 2023 · 27 comments
Closed

[HOLD] warning: setNativeProps is deprecated #26989

marcaaron opened this issue Sep 7, 2023 · 27 comments
Labels
Improvement Item broken or needs improvement. Monthly KSv2 Not a priority Planning Changes still in the thought process

Comments

@marcaaron
Copy link
Contributor

marcaaron commented Sep 7, 2023

2023-09-07_09-56-41

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c3301af71f9f2c5b
  • Upwork Job ID: 1700244879840337920
  • Last Price Increase: 2023-09-22
@marcaaron marcaaron added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 7, 2023

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 7, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@trjExpensify
Copy link
Contributor

👋 what am I doing with this mate?

@marcaaron
Copy link
Contributor Author

-> External

@marcaaron marcaaron added the External Added to denote the issue can be worked on by a contributor label Sep 8, 2023
@melvin-bot melvin-bot bot changed the title warning: setNativeProps is deprecated [$500] warning: setNativeProps is deprecated Sep 8, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01c3301af71f9f2c5b

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 8, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 (External)

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@trjExpensify
Copy link
Contributor

Waiting for proposals.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 15, 2023

@trjExpensify, @narefyev91 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot
Copy link

melvin-bot bot commented Sep 15, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@trjExpensify
Copy link
Contributor

Waiting for proposals.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 18, 2023
@trjExpensify
Copy link
Contributor

@marcaaron have any particular contributors been involved in knocking down setNativeProps related issues we can approach here?

@melvin-bot melvin-bot bot removed the Overdue label Sep 20, 2023
@marcaaron
Copy link
Contributor Author

Not that I know of. This looks like it's coming from an animation library though so maybe SWM can help.

@melvin-bot
Copy link

melvin-bot bot commented Sep 21, 2023

@trjExpensify @narefyev91 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@trjExpensify
Copy link
Contributor

Cool, I can ask. Do you know where this shows up in the app? I don't see it in the console.

@narefyev91
Copy link
Contributor

@trjExpensify just simply loading default page in web (in console last warning message)
Screenshot 2023-09-22 at 12 48 21

@trjExpensify
Copy link
Contributor

Ah, i was on the desktop app. I can see it after a refresh now, thanks!

@blazejkustra
Copy link
Contributor

Not that I know of. This looks like it's coming from an animation library though so maybe SWM can help.

@marcaaron From what I see the error comes from @expensify/react-native-web, what makes you think that it comes from an animation library?

@blazejkustra
Copy link
Contributor

There are a lot of libraries that use setNativeProps, from node_modules search:
image

BTW setNativeProps won't be even supported in Fabric, source.

We can't do much about this warning other than to patch the library and comment out the console log with the warning. I guess that would be my proposal for this issue 😅

image

@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@marcaaron
Copy link
Contributor Author

saw references to these in the warning trace:

2023-09-25_11-59-49

@melvin-bot melvin-bot bot added the Overdue label Sep 25, 2023
@trjExpensify
Copy link
Contributor

Chill Melv, @blazejkustra & @marcaaron are actively discussing.

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2023
@blazejkustra
Copy link
Contributor

@marcaaron @trjExpensify These are animations from react-native/react-native-web (Animated). setNativeProps is what Animated uses to bypass setState. So as long as we use Animated I don't think we can do much about this warning, so either we refactor every usage of Animated to make sure it doesn't use setNativeProps internally or migrate animations to react-native-reanimated.

Is there a plan to replace Animated with Reanimated in the near future?

@marcaaron
Copy link
Contributor Author

Is there a plan to replace Animated with Reanimated in the near future?

Not that I know of.

I think we can maybe keep this open though and just put it on HOLD then close whenever react-native-web fixes this.

As long as we are tracking it somewhere...

@melvin-bot melvin-bot bot added the Overdue label Sep 27, 2023
@trjExpensify
Copy link
Contributor

Hm, okay. Is there anything to point to as a PR or issue with RNW that would fix this? Happy to pop [Hold] in the title but when we do that, we should point to what it's held on, not that it's indefinitely in the ether.

@melvin-bot melvin-bot bot removed the Overdue label Sep 27, 2023
@marcaaron
Copy link
Contributor Author

Update rnw maybe? Migrating off Animated could also be an option. Sorry I mainly created this issue because we have a checklist item that asks to create the issue if there are warnings in the JS console. If we want to ignore it and close the issue we can also do that, but it might pop up again which is why I recommended leaving it open and on HOLD.

If the main issue is the Daily and Bug labels being annoying then we can just drop them as this isn't really a "bug" 🤷‍♂️

@marcaaron marcaaron added Planning Changes still in the thought process and removed External Added to denote the issue can be worked on by a contributor Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels Sep 28, 2023
@marcaaron marcaaron changed the title [$500] warning: setNativeProps is deprecated [HOLD] warning: setNativeProps is deprecated Sep 28, 2023
@marcaaron marcaaron added the Improvement Item broken or needs improvement. label Sep 28, 2023
@melvin-bot melvin-bot bot added the Monthly KSv2 label Sep 28, 2023
Copy link

melvin-bot bot commented Dec 11, 2023

@marcaaron, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Item broken or needs improvement. Monthly KSv2 Not a priority Planning Changes still in the thought process
Projects
None yet
Development

No branches or pull requests

4 participants