UNPKG

expo-dynamic-image-crop

Version:

Dynamic image cropping component for Expo/React Native with free-form and fixed aspect ratio support

17 lines (16 loc) 599 B
import { jsx as _jsx } from "react/jsx-runtime"; import { View, StyleSheet, ActivityIndicator } from "react-native"; function Processing({ color = "#FFF", size = "large", customComponent }) { return (_jsx(View, { style: styles.container, children: customComponent ?? (_jsx(ActivityIndicator, { color: color, size: size })) })); } export { Processing }; const styles = StyleSheet.create({ container: { position: "absolute", height: "100%", width: "100%", backgroundColor: "#33333355", justifyContent: "center", alignItems: "center", }, });