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

Remove unsafe methods #2130

Merged
merged 1 commit into from
Aug 2, 2022
Merged

Remove unsafe methods #2130

merged 1 commit into from
Aug 2, 2022

Conversation

j-piasecki
Copy link
Member

Description

Closes #2127.

This PR gets rid of the UNSAFE_ methods:

  • replacing UNSAFE_componentWillUpdate with shouldComponentUpdate
  • moving the creation of PanResponder to constructor from UNSAFE_componentWillMount

Test plan

Tested on the example app.

@j-piasecki j-piasecki merged commit 120892b into main Aug 2, 2022
@j-piasecki j-piasecki deleted the @jpiasecki/remove-unsafe-methods branch August 2, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some components are using UNSAFE_ and trigger warnings in Strict Mode
2 participants