---
title: "Left Align"
description: "Left Align carousel animation for React Native, with a live demo and its full source."
canonical_url: "https://rn-carousel.dev/Examples/basic-layouts/left-align"
markdown_url: "https://rn-carousel.dev/Examples/basic-layouts/left-align.md"
version: "5"
---
# Left Align

Check out the `left-align` animation demo for the full source code [here](https://github.com/dohooo/react-native-reanimated-carousel/blob/main/example/app/app/demos/basic-layouts/left-align/index.tsx)

[Open the interactive left-align demo](https://rn-carousel.dev/Examples/basic-layouts/left-align)

```tsx copy
import { renderItem } from "@/utils/render-item";
import * as React from "react";
import { View } from "react-native";
import { Carousel } from "react-native-reanimated-carousel";

const defaultDataWith6Colors = [
	"#B0604D",
	"#899F9C",
	"#B3C680",
	"#5C6265",
	"#F5D399",
	"#F1F1F1",
];

function Index() {
	return (
		<View
			id="carousel-component"
			dataSet={{ kind: "basic-layouts", name: "left-align" }}
		>
			<Carousel
				loop={true}
				autoplayInterval={2000}
				data={defaultDataWith6Colors}
				style={{ width: 430, height: 258 }}
				itemSize={430 * 0.75}
				onSnapToItem={(index) => console.log("current index:", index)}
				renderItem={renderItem({ rounded: true, style: { marginRight: 8 } })}
			/>
		</View>
	);
}

export default Index;

```
