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

Animated Warning is rendering! #17

Open
DeviprasadMG opened this issue Apr 28, 2020 · 6 comments
Open

Animated Warning is rendering! #17

DeviprasadMG opened this issue Apr 28, 2020 · 6 comments

Comments

@DeviprasadMG
Copy link

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

That warning irritates a lot!!!

Simulator Screen Shot - iPhone 11 - 2020-04-28 at 12 50 38

@ansalmishra10
Copy link

please provide us a way to solve this warning

@stephanoparaskeva
Copy link

please provide us a way to solve this warning

Explicitly set 'NativeDriver' to true on animated components

@DeviprasadMG
Copy link
Author

How you'll explicitly set 'NativeDrive' in library?

@changoug
Copy link

changoug commented Sep 4, 2020

I think it's a bug :/

@Chhantea
Copy link

Chhantea commented Oct 5, 2020

The owner need to update his source File

@Chhantea
Copy link

My solution: Manually copy code from src >> Edit Carousel.tsx (add useNativeDriver:false on line 50) and import your file to your project. Done!! Ps dont forget to restart.

eg:
public static defaultProps: CarouselProps = {
pageSize: Dimensions.get('window').width,
index: 0,
loop: true,
autoplay: true,
autoplayTimeout: 5000,
slipFactor: 1,
showsPageIndicator: true,
pageIndicatorOffset: 16,
animation: (animate, toValue) => {
return Animated.spring(animate, {
toValue: toValue,
friction: 10,
tension: 50,
useNativeDriver:false // <----- here
});
}
};

For others error just add unsafe_ on those willReceiveProps etc... etc..

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

5 participants