react-native-expo-cropper 1.3.53 → 1.3.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/CustomCamera.js
CHANGED
|
@@ -438,7 +438,7 @@ var styles = _reactNative.StyleSheet.create({
|
|
|
438
438
|
borderWidth: 2,
|
|
439
439
|
borderColor: ACCENT_GREEN,
|
|
440
440
|
borderRadius: 2,
|
|
441
|
-
backgroundColor: 'rgba(
|
|
441
|
+
backgroundColor: 'rgba(0, 0, 0, 0.1)'
|
|
442
442
|
},
|
|
443
443
|
loadingOverlay: _objectSpread(_objectSpread({}, _reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
444
444
|
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
package/dist/ImageCropper.js
CHANGED
|
@@ -1103,14 +1103,15 @@ var ImageCropper = function ImageCropper(_ref) {
|
|
|
1103
1103
|
style: _ImageCropperStyles["default"].enhanceButton,
|
|
1104
1104
|
onPress: handleReset,
|
|
1105
1105
|
activeOpacity: 0.85
|
|
1106
|
-
}, /*#__PURE__*/_react["default"].createElement(_vectorIcons.
|
|
1107
|
-
name: "
|
|
1108
|
-
size: Math.round(
|
|
1106
|
+
}, /*#__PURE__*/_react["default"].createElement(_vectorIcons.AntDesign, {
|
|
1107
|
+
name: "rollback",
|
|
1108
|
+
size: Math.round(14 * responsiveScale),
|
|
1109
1109
|
color: "rgba(255,255,255,0.95)"
|
|
1110
1110
|
}), /*#__PURE__*/_react["default"].createElement(_reactNative.Text, {
|
|
1111
|
-
style: _ImageCropperStyles["default"].buttonText,
|
|
1112
|
-
|
|
1113
|
-
|
|
1111
|
+
style: [_ImageCropperStyles["default"].buttonText, {
|
|
1112
|
+
fontSize: Math.max(10, Math.round(11 * responsiveScale)),
|
|
1113
|
+
letterSpacing: 0.5
|
|
1114
|
+
}]
|
|
1114
1115
|
}, resetText || 'Enhance')), /*#__PURE__*/_react["default"].createElement(_reactNative.TouchableOpacity, {
|
|
1115
1116
|
style: [_ImageCropperStyles["default"].rotationButton, {
|
|
1116
1117
|
minWidth: Math.max(Math.round(88 * responsiveScale), Math.round(((rotateText ? String(rotateText).length : 6) * 7 + 38) * responsiveScale))
|
package/package.json
CHANGED
package/src/CustomCamera.js
CHANGED
|
@@ -381,7 +381,7 @@ const styles = StyleSheet.create({
|
|
|
381
381
|
borderWidth: 2,
|
|
382
382
|
borderColor: ACCENT_GREEN,
|
|
383
383
|
borderRadius: 2,
|
|
384
|
-
backgroundColor: 'rgba(
|
|
384
|
+
backgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
385
385
|
},
|
|
386
386
|
loadingOverlay: {
|
|
387
387
|
...StyleSheet.absoluteFillObject,
|
package/src/ImageCropper.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Modal, View, Image, TouchableOpacity, Text, Platform, PixelRatio, Style
|
|
|
4
4
|
import Svg, { Path, Circle } from 'react-native-svg';
|
|
5
5
|
import CustomCamera from './CustomCamera';
|
|
6
6
|
import * as ImageManipulator from 'expo-image-manipulator';
|
|
7
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
7
|
+
import { Ionicons , AntDesign } from '@expo/vector-icons';
|
|
8
8
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
9
9
|
import { applyMaskToImage, MaskView } from './ImageMaskProcessor';
|
|
10
10
|
|
|
@@ -963,8 +963,16 @@ const rotatePreviewImage = async (degrees) => {
|
|
|
963
963
|
onPress={handleReset}
|
|
964
964
|
activeOpacity={0.85}
|
|
965
965
|
>
|
|
966
|
-
<
|
|
967
|
-
<Text
|
|
966
|
+
<AntDesign name="rollback" size={Math.round(14 * responsiveScale)} color="rgba(255,255,255,0.95)" />
|
|
967
|
+
<Text
|
|
968
|
+
style={[
|
|
969
|
+
styles.buttonText,
|
|
970
|
+
{
|
|
971
|
+
fontSize: Math.max(10, Math.round(11 * responsiveScale)),
|
|
972
|
+
letterSpacing: 0.5,
|
|
973
|
+
},
|
|
974
|
+
]}
|
|
975
|
+
>
|
|
968
976
|
{resetText || 'Enhance'}
|
|
969
977
|
</Text>
|
|
970
978
|
</TouchableOpacity>
|