Sign in to Reactiive

Use your Google or Apple account.
Signing in subscribes you to the newsletter: new content and the occasional promotion. Unsubscribe at any time.
Skip to content

Image Cropper with React Native Skia 🖼️

Monday, June 19, 2023
skia
gesture-handler
enzomanuelmangano
demos
image-cropper
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
An interactive image cropping component with navigation and preview capabilities.

What's This About?

This component provides a sophisticated image cropping interface that allows users to select and adjust portions of images. The component features a modal-based navigation flow where users can crop an image and then view the cropped result in detail. The interface is designed with a dark theme and smooth transitions between screens, making it ideal for photo editing applications.

Technical Implementation

The component uses:
Stack navigation
Modal presentations
Image manipulation
Screen transitions
Dark theme styling

Usage

// Navigation types type RootStackParamList = { ImageCropper: undefined; DetailCroppedImage: { // Image details }; }; // Basic usage <ImageCropper />; // Navigation setup const Stack = createNativeStackNavigator<RootStackParamList>(); <Stack.Navigator screenOptions={{ presentation: 'modal', contentStyle: { backgroundColor: '#000', }, }} > <Stack.Screen name="ImageCropper" component={ImageCropperScreen} /> <Stack.Screen name="DetailCroppedImage" component={DetailImageScreen} /> </Stack.Navigator>;

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Image Cropper

Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback