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

fix: warning requesting useNativeDriver config #1783

Closed
wants to merge 2 commits into from

Conversation

fmsouza
Copy link

@fmsouza fmsouza commented Apr 4, 2020

Fixes #1782

After React Native update to version 0.62, a new warning is visible whenever a Button imported from this lib is clicked, requesting to set useNativeDriver property explicity in the animation config for this action.

Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false

Motivation

This Pull Request sets the useNativeDriver flag explicitly to false so the warning stops showing.

Test plan

  • Start a new project with React Native version 0.62
  • Install react-native-paper to the project
  • Add the Paper Provider so themes can be available
  • Add a Button to the screen with import { Button } from 'react-native-paper';
  • Run the app and click it
  • See the warning in the emulator/simulator/device and in the console

@callstack-bot
Copy link

callstack-bot commented Apr 4, 2020

Hey @fmsouza, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@fmsouza fmsouza changed the title Fixes warning requesting useNativeDriver config fix: warning requesting useNativeDriver config Apr 4, 2020
@Trancever
Copy link
Contributor

This is a duplicate of #1769.

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.

Warning - Animated : UseNativeDriver was not specified
3 participants