diff --git a/docs/next/animations.html b/docs/next/animations.html index 724c1a5497d..0e2ad2c9670 100644 --- a/docs/next/animations.html +++ b/docs/next/animations.html @@ -271,14 +271,7 @@ Animated.tim useWindowDimensions } from "react-native"; -const images = [ - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4" -]; +const images = new Array(6).fill('https://images.unsplash.com/photo-1556740749-887f6717d7e4'); export default function App() { const scrollX = useRef(new Animated.Value(0)).current; @@ -392,7 +385,7 @@ const styles = StyleSheet.create({
from "react-native"; -const images = [ - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4" -]; +const images = new Array(6).fill('https://images.unsplash.com/photo-1556740749-887f6717d7e4'); const window = Dimensions.get("window"); @@ -563,7 +549,7 @@ const styles = StyleSheet.create({
.tim useWindowDimensions } from "react-native"; -const images = [ - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4" -]; +const images = new Array(6).fill('https://images.unsplash.com/photo-1556740749-887f6717d7e4'); export default function App() { const scrollX = useRef(new Animated.Value(0)).current; @@ -392,7 +385,7 @@ const styles = StyleSheet.create({
from "react-native"; -const images = [ - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4", - "https://images.unsplash.com/photo-1556740749-887f6717d7e4" -]; +const images = new Array(6).fill('https://images.unsplash.com/photo-1556740749-887f6717d7e4'); const window = Dimensions.get("window"); @@ -563,7 +549,7 @@ const styles = StyleSheet.create({