Skip to main content

Carousel

The Carousel screen facilitates the slider feature to swipe between images and videos or documents. And the screen doesn't require any parameters, allowing for direct utilization.

Code snippet

import { CarouselScreen } from "@likeminds.community/chat-rn-core";
import { NavigationContainer } from "@react-navigation/native";
return (
// replace NavigationContainer with your navigation container
<NavigationContainer independent={true}>
<Stack.Navigator>
<Stack.Screen
options={{ gestureEnabled: false }}
name={"CarouselScreen"}
component={CarouselScreen}
/>
</Stack.Navigator>
</NavigationContainer>
);