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

Problem with useNativeDriver and componentWillReceiveProps #440

Open
nihil-pro opened this issue Dec 14, 2020 · 11 comments
Open

Problem with useNativeDriver and componentWillReceiveProps #440

nihil-pro opened this issue Dec 14, 2020 · 11 comments

Comments

@nihil-pro
Copy link

nihil-pro commented Dec 14, 2020

Issue

Two warnings
Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false
and
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

Expected Behavior

Code

<DatePicker
   customStyles={{
      dateInput: {flexDirection: 'row', borderWidth: 0, justifyContent: 'flex-end', paddingTop: 3},
   }}
   minDate="2020-10-01"
   maxDate={Dates().today}
   confirmBtnText="Apply"
   cancelBtnText="Close"
   onDateChange={date => setDay(new Date(date).toLocaleDateString())}
/>

Environment

  1. react-native -v: 39.0.0
  2. node -v: 14.2.0
  3. npm -v: 6.14.4
  4. target platform: Android and iOS
  5. operating system: mac os
@dnlmzw
Copy link

dnlmzw commented Dec 22, 2020

+1

3 similar comments
@VVassyk
Copy link

VVassyk commented Dec 26, 2020

+1

@JoaquinBeceiro
Copy link

+1

@appsgenie
Copy link

+1

@MahmutGundogduKizilay
Copy link

+1 too

@ixez
Copy link

ixez commented Feb 13, 2021

+1

1 similar comment
@dibyopra
Copy link

+1

@YunusEmreNalbant
Copy link

@Dougsrodrigues
Copy link

+1

2 similar comments
@AsABarranco
Copy link

+1

@cinkagan
Copy link

+1

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

No branches or pull requests