React-native-paper: useNativeDriver is required in Animation.Timing calls in newer versions of React Native

Created on 17 Feb 2020  路  5Comments  路  Source: callstack/react-native-paper

Describe the feature

in Animated for react native v62+, useNativeDriver is a required value. I saw this in particular for onPressIn and onPressOut for the Button component.

image

Motivation

getting rid of yellow box errors on day one when 62 comes out fully

Most helpful comment

Fixed in v3.8

All 5 comments

Same problem here. Would be great if we get a fix.

hi @ryanmagoon ,
i faced the same problem as you
i'm on
"react-native": "0.62.0",
"react-native-paper": "^3.6.0",

for me the problem was on Button with mode='contained'
so my work around was to :

  • remove the mode prop
  • use a custom style
    style={{backgroundColor:Theme.primary, elevation:7, border:0}}
  • set text color, which changes the ripple effect's color
    color={Theme.light}
    and now the Button animations work without warnings
    馃槂

I have same problem too.

Waiting for update. Thanks

Same problem too and proposed workaround does not work, I have this error:

Screenshot 2020-04-07 at 10 04 56

Fixed in v3.8

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZhengYuTay picture ZhengYuTay  路  3Comments

kpervin picture kpervin  路  3Comments

talaikis picture talaikis  路  3Comments

alikazemkhanloo picture alikazemkhanloo  路  4Comments

satya164 picture satya164  路  4Comments