Closed vishal-bhil closed 2 years ago
Could you give us the sample code?
I'm seeing this same issue, here's some sample usage code:
type Props = {} & ShimmerPlaceholderProps;
export default function ShimmerPlaceholder({ ...props }: Props) {
const Placeholder = createShimmerPlaceholder(LinearGradient);
const animationRef = React.createRef<any>();
useEffect(() => {
const animated = Animated.stagger(400, [
animationRef.current.getAnimated(),
]);
Animated.loop(animated).start();
}, [animationRef]);
return <Placeholder ref={animationRef} {...props} />;
}
try keeping location={null}
if you don't want to explicitly set the gradient locations and get rid of the warning message.