@plusscommunities/pluss-core-app 8.0.1-beta.0 → 8.0.2-auth.0

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.
Files changed (320) hide show
  1. package/dist/module/actions/FollowerActions.js +4 -4
  2. package/dist/module/actions/FollowerActions.js.map +1 -1
  3. package/dist/module/actions/MediaActions.js +1 -1
  4. package/dist/module/actions/MediaActions.js.map +1 -1
  5. package/dist/module/actions/ResidentActions.js +1 -1
  6. package/dist/module/actions/ResidentActions.js.map +1 -1
  7. package/dist/module/actions/UserActions.js +1 -1
  8. package/dist/module/actions/UserActions.js.map +1 -1
  9. package/dist/module/actions/UserSettingsActions.js +1 -1
  10. package/dist/module/actions/UserSettingsActions.js.map +1 -1
  11. package/dist/module/actions/index.js +5 -5
  12. package/dist/module/actions/index.js.map +1 -1
  13. package/dist/module/actions/types.js +16 -16
  14. package/dist/module/actions/types.js.map +1 -1
  15. package/dist/module/apis/analyticsActions.js +5 -5
  16. package/dist/module/apis/analyticsActions.js.map +1 -1
  17. package/dist/module/apis/contactActions.js +6 -6
  18. package/dist/module/apis/contactActions.js.map +1 -1
  19. package/dist/module/apis/eventActions.js +28 -28
  20. package/dist/module/apis/eventActions.js.map +1 -1
  21. package/dist/module/apis/fileActions.js +15 -15
  22. package/dist/module/apis/fileActions.js.map +1 -1
  23. package/dist/module/apis/followerActions.js +8 -8
  24. package/dist/module/apis/followerActions.js.map +1 -1
  25. package/dist/module/apis/index.js +12 -12
  26. package/dist/module/apis/index.js.map +1 -1
  27. package/dist/module/apis/notificationActions.js +17 -17
  28. package/dist/module/apis/notificationActions.js.map +1 -1
  29. package/dist/module/apis/profileActions.js +4 -4
  30. package/dist/module/apis/profileActions.js.map +1 -1
  31. package/dist/module/apis/reactionActions.js +15 -15
  32. package/dist/module/apis/reactionActions.js.map +1 -1
  33. package/dist/module/apis/settingActions.js +6 -6
  34. package/dist/module/apis/settingActions.js.map +1 -1
  35. package/dist/module/apis/stringActions.js +8 -8
  36. package/dist/module/apis/stringActions.js.map +1 -1
  37. package/dist/module/apis/typeActions.js +4 -4
  38. package/dist/module/apis/typeActions.js.map +1 -1
  39. package/dist/module/apis/userActions.js +8 -8
  40. package/dist/module/apis/userActions.js.map +1 -1
  41. package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  42. package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  43. package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  44. package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  45. package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  46. package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  47. package/dist/module/colours.js +26 -29
  48. package/dist/module/colours.js.map +1 -1
  49. package/dist/module/components/AddButton.js +8 -8
  50. package/dist/module/components/AddButton.js.map +1 -1
  51. package/dist/module/components/AddToCalendarButton.js +30 -29
  52. package/dist/module/components/AddToCalendarButton.js.map +1 -1
  53. package/dist/module/components/Attachment.js +10 -9
  54. package/dist/module/components/Attachment.js.map +1 -1
  55. package/dist/module/components/AudienceSelectorLauncher.js +11 -11
  56. package/dist/module/components/AudienceSelectorLauncher.js.map +1 -1
  57. package/dist/module/components/AudienceSelectorPage.js +45 -44
  58. package/dist/module/components/AudienceSelectorPage.js.map +1 -1
  59. package/dist/module/components/AutoOffsetImage.js +13 -13
  60. package/dist/module/components/AutoOffsetImage.js.map +1 -1
  61. package/dist/module/components/BackButton.js +10 -10
  62. package/dist/module/components/BackButton.js.map +1 -1
  63. package/dist/module/components/CalendarPopup.js +21 -21
  64. package/dist/module/components/CalendarPopup.js.map +1 -1
  65. package/dist/module/components/CategoryTabs.js +30 -29
  66. package/dist/module/components/CategoryTabs.js.map +1 -1
  67. package/dist/module/components/CommentReply.js +43 -37
  68. package/dist/module/components/CommentReply.js.map +1 -1
  69. package/dist/module/components/CommentSection.js +74 -74
  70. package/dist/module/components/CommentSection.js.map +1 -1
  71. package/dist/module/components/ConfirmPopup.js +21 -20
  72. package/dist/module/components/ConfirmPopup.js.map +1 -1
  73. package/dist/module/components/ConfirmationPopup.js +11 -11
  74. package/dist/module/components/ConfirmationPopup.js.map +1 -1
  75. package/dist/module/components/DocumentUploader.js +50 -50
  76. package/dist/module/components/DocumentUploader.js.map +1 -1
  77. package/dist/module/components/DropDownItem.js +14 -13
  78. package/dist/module/components/DropDownItem.js.map +1 -1
  79. package/dist/module/components/DropDownMenu.js +5 -5
  80. package/dist/module/components/DropDownMenu.js.map +1 -1
  81. package/dist/module/components/EmptyStateMain.js +10 -9
  82. package/dist/module/components/EmptyStateMain.js.map +1 -1
  83. package/dist/module/components/EmptyStateWidget.js +7 -6
  84. package/dist/module/components/EmptyStateWidget.js.map +1 -1
  85. package/dist/module/components/FontScaleButton.js +5 -4
  86. package/dist/module/components/FontScaleButton.js.map +1 -1
  87. package/dist/module/components/FontScalePopup.js +11 -10
  88. package/dist/module/components/FontScalePopup.js.map +1 -1
  89. package/dist/module/components/Forbidden.js +13 -13
  90. package/dist/module/components/Forbidden.js.map +1 -1
  91. package/dist/module/components/FormCard.js +4 -4
  92. package/dist/module/components/FormCard.js.map +1 -1
  93. package/dist/module/components/FormCardSection.js +20 -18
  94. package/dist/module/components/FormCardSection.js.map +1 -1
  95. package/dist/module/components/FormCardSectionOptionLauncher.js +13 -12
  96. package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -1
  97. package/dist/module/components/FormattedText.js +18 -16
  98. package/dist/module/components/FormattedText.js.map +1 -1
  99. package/dist/module/components/GenericInput.js +24 -21
  100. package/dist/module/components/GenericInput.js.map +1 -1
  101. package/dist/module/components/GenericInputSection.js +27 -26
  102. package/dist/module/components/GenericInputSection.js.map +1 -1
  103. package/dist/module/components/Header.js +70 -69
  104. package/dist/module/components/Header.js.map +1 -1
  105. package/dist/module/components/Icon.js +109 -0
  106. package/dist/module/components/Icon.js.map +1 -0
  107. package/dist/module/components/ImagePopup.js +211 -73
  108. package/dist/module/components/ImagePopup.js.map +1 -1
  109. package/dist/module/components/ImageUploadProgress.js +10 -9
  110. package/dist/module/components/ImageUploadProgress.js.map +1 -1
  111. package/dist/module/components/ImageUploader.js +122 -97
  112. package/dist/module/components/ImageUploader.js.map +1 -1
  113. package/dist/module/components/InlineButton.js +9 -8
  114. package/dist/module/components/InlineButton.js.map +1 -1
  115. package/dist/module/components/Input.js +28 -26
  116. package/dist/module/components/Input.js.map +1 -1
  117. package/dist/module/components/LoadingCircles.js +20 -20
  118. package/dist/module/components/LoadingCircles.js.map +1 -1
  119. package/dist/module/components/LoadingIndicator.js +11 -11
  120. package/dist/module/components/LoadingIndicator.js.map +1 -1
  121. package/dist/module/components/LoadingStateWidget.js +5 -5
  122. package/dist/module/components/LoadingStateWidget.js.map +1 -1
  123. package/dist/module/components/MediaPlayer.js +31 -31
  124. package/dist/module/components/MediaPlayer.js.map +1 -1
  125. package/dist/module/components/MiddlePopup.js +17 -11
  126. package/dist/module/components/MiddlePopup.js.map +1 -1
  127. package/dist/module/components/PDFPopup.js +152 -46
  128. package/dist/module/components/PDFPopup.js.map +1 -1
  129. package/dist/module/components/PlussChat.js +168 -149
  130. package/dist/module/components/PlussChat.js.map +1 -1
  131. package/dist/module/components/PlussChatMessage.js +42 -42
  132. package/dist/module/components/PlussChatMessage.js.map +1 -1
  133. package/dist/module/components/PlussChatTime.js +18 -17
  134. package/dist/module/components/PlussChatTime.js.map +1 -1
  135. package/dist/module/components/Popup.js +20 -19
  136. package/dist/module/components/Popup.js.map +1 -1
  137. package/dist/module/components/PopupMenu.js +15 -14
  138. package/dist/module/components/PopupMenu.js.map +1 -1
  139. package/dist/module/components/PositionedImage.js +20 -20
  140. package/dist/module/components/PositionedImage.js.map +1 -1
  141. package/dist/module/components/ProfilePic.js +10 -10
  142. package/dist/module/components/ProfilePic.js.map +1 -1
  143. package/dist/module/components/RadioButton.js +10 -9
  144. package/dist/module/components/RadioButton.js.map +1 -1
  145. package/dist/module/components/Reaction.js +18 -17
  146. package/dist/module/components/Reaction.js.map +1 -1
  147. package/dist/module/components/Reactions.js +7 -7
  148. package/dist/module/components/Reactions.js.map +1 -1
  149. package/dist/module/components/SharingTools.js +78 -43
  150. package/dist/module/components/SharingTools.js.map +1 -1
  151. package/dist/module/components/Spinner.js +5 -5
  152. package/dist/module/components/Spinner.js.map +1 -1
  153. package/dist/module/components/StickyFooter.js +6 -6
  154. package/dist/module/components/StickyFooter.js.map +1 -1
  155. package/dist/module/components/Text.js +57 -0
  156. package/dist/module/components/Text.js.map +1 -0
  157. package/dist/module/components/TickIcon.js +6 -6
  158. package/dist/module/components/TickIcon.js.map +1 -1
  159. package/dist/module/components/Toggle.js +10 -9
  160. package/dist/module/components/Toggle.js.map +1 -1
  161. package/dist/module/components/TouchableSearchBar.js +18 -17
  162. package/dist/module/components/TouchableSearchBar.js.map +1 -1
  163. package/dist/module/components/UserListPopup.js +20 -19
  164. package/dist/module/components/UserListPopup.js.map +1 -1
  165. package/dist/module/components/UserListing.js +41 -40
  166. package/dist/module/components/UserListing.js.map +1 -1
  167. package/dist/module/components/VideoPopup.js +20 -20
  168. package/dist/module/components/VideoPopup.js.map +1 -1
  169. package/dist/module/components/WarningPopup.js +21 -20
  170. package/dist/module/components/WarningPopup.js.map +1 -1
  171. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +13 -13
  172. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -1
  173. package/dist/module/components/expo-image-picker-multiple/ImageTile.js +24 -23
  174. package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -1
  175. package/dist/module/components/index.js +59 -58
  176. package/dist/module/components/index.js.map +1 -1
  177. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +113 -76
  178. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -1
  179. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +64 -64
  180. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -1
  181. package/dist/module/config.js +15 -10
  182. package/dist/module/config.js.map +1 -1
  183. package/dist/module/constants.js +3 -4
  184. package/dist/module/constants.js.map +1 -1
  185. package/dist/module/helper.js +83 -82
  186. package/dist/module/helper.js.map +1 -1
  187. package/dist/module/index.js +12 -12
  188. package/dist/module/index.js.map +1 -1
  189. package/dist/module/js/images/detectFaces.js +11 -10
  190. package/dist/module/js/images/detectFaces.js.map +1 -1
  191. package/dist/module/js/images/findLandmarkRange.js +8 -8
  192. package/dist/module/js/images/findLandmarkRange.js.map +1 -1
  193. package/dist/module/js/images/getScaledOffset.js.map +1 -1
  194. package/dist/module/js/site/getSiteLevelFromState.js +2 -2
  195. package/dist/module/js/site/getSiteLevelFromState.js.map +1 -1
  196. package/dist/module/js/site/isTVEnabled.js +2 -2
  197. package/dist/module/js/site/isTVEnabled.js.map +1 -1
  198. package/dist/module/session.js +6 -6
  199. package/dist/module/session.js.map +1 -1
  200. package/dist/module/styles.js +17 -17
  201. package/dist/module/styles.js.map +1 -1
  202. package/dist/module/withNavigationFocus.js +30 -0
  203. package/dist/module/withNavigationFocus.js.map +1 -0
  204. package/package.json +81 -68
  205. package/src/actions/FollowerActions.js +36 -32
  206. package/src/actions/MediaActions.js +25 -20
  207. package/src/actions/ResidentActions.js +26 -21
  208. package/src/actions/UserActions.js +22 -22
  209. package/src/actions/UserSettingsActions.js +11 -11
  210. package/src/actions/index.js +5 -5
  211. package/src/actions/types.js +16 -16
  212. package/src/apis/analyticsActions.js +17 -17
  213. package/src/apis/contactActions.js +20 -20
  214. package/src/apis/eventActions.js +153 -144
  215. package/src/apis/fileActions.js +96 -86
  216. package/src/apis/followerActions.js +29 -29
  217. package/src/apis/index.js +12 -12
  218. package/src/apis/notificationActions.js +44 -44
  219. package/src/apis/profileActions.js +8 -8
  220. package/src/apis/reactionActions.js +81 -73
  221. package/src/apis/settingActions.js +15 -15
  222. package/src/apis/stringActions.js +29 -25
  223. package/src/apis/typeActions.js +10 -10
  224. package/src/apis/userActions.js +93 -93
  225. package/src/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  226. package/src/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  227. package/src/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  228. package/src/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  229. package/src/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  230. package/src/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  231. package/src/colours.js +116 -96
  232. package/src/components/AddButton.js +32 -27
  233. package/src/components/AddToCalendarButton.js +236 -202
  234. package/src/components/Attachment.js +59 -36
  235. package/src/components/AudienceSelectorLauncher.js +52 -48
  236. package/src/components/AudienceSelectorPage.js +353 -311
  237. package/src/components/AutoOffsetImage.js +237 -196
  238. package/src/components/BackButton.js +57 -41
  239. package/src/components/CalendarPopup.js +127 -97
  240. package/src/components/CategoryTabs.js +208 -163
  241. package/src/components/CommentReply.js +370 -309
  242. package/src/components/CommentSection.js +974 -781
  243. package/src/components/ConfirmPopup.js +141 -110
  244. package/src/components/ConfirmationPopup.js +80 -69
  245. package/src/components/DocumentUploader.js +245 -215
  246. package/src/components/DropDownItem.js +70 -60
  247. package/src/components/DropDownMenu.js +31 -27
  248. package/src/components/EmptyStateMain.js +51 -44
  249. package/src/components/EmptyStateWidget.js +47 -38
  250. package/src/components/FontScaleButton.js +29 -25
  251. package/src/components/FontScalePopup.js +67 -56
  252. package/src/components/Forbidden.js +48 -46
  253. package/src/components/FormCard.js +21 -17
  254. package/src/components/FormCardSection.js +284 -233
  255. package/src/components/FormCardSectionOptionLauncher.js +72 -46
  256. package/src/components/FormattedText.js +128 -111
  257. package/src/components/GenericInput.js +168 -136
  258. package/src/components/GenericInputSection.js +209 -161
  259. package/src/components/Header.js +620 -474
  260. package/src/components/Icon.js +119 -0
  261. package/src/components/ImagePopup.js +425 -221
  262. package/src/components/ImageUploadProgress.js +49 -41
  263. package/src/components/ImageUploader.js +973 -797
  264. package/src/components/InlineButton.js +79 -69
  265. package/src/components/Input.js +190 -156
  266. package/src/components/LoadingCircles.js +233 -233
  267. package/src/components/LoadingIndicator.js +87 -76
  268. package/src/components/LoadingStateWidget.js +47 -37
  269. package/src/components/MediaPlayer.js +416 -387
  270. package/src/components/MiddlePopup.js +62 -33
  271. package/src/components/PDFPopup.js +307 -159
  272. package/src/components/PlussChat.js +1224 -1025
  273. package/src/components/PlussChatMessage.js +329 -298
  274. package/src/components/PlussChatTime.js +57 -53
  275. package/src/components/Popup.js +138 -116
  276. package/src/components/PopupMenu.js +140 -110
  277. package/src/components/PositionedImage.js +281 -237
  278. package/src/components/ProfilePic.js +122 -113
  279. package/src/components/RadioButton.js +76 -52
  280. package/src/components/Reaction.js +134 -96
  281. package/src/components/Reactions.js +65 -63
  282. package/src/components/SharingTools.js +185 -134
  283. package/src/components/Spinner.js +13 -13
  284. package/src/components/StickyFooter.js +36 -26
  285. package/src/components/Text.js +62 -0
  286. package/src/components/TickIcon.js +20 -20
  287. package/src/components/Toggle.js +74 -73
  288. package/src/components/TouchableSearchBar.js +68 -50
  289. package/src/components/UserListPopup.js +161 -124
  290. package/src/components/UserListing.js +273 -238
  291. package/src/components/VideoPopup.js +110 -96
  292. package/src/components/WarningPopup.js +92 -71
  293. package/src/components/expo-image-picker-multiple/ImageBrowser.js +288 -256
  294. package/src/components/expo-image-picker-multiple/ImageTile.js +108 -84
  295. package/src/components/index.js +59 -58
  296. package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +447 -359
  297. package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
  298. package/src/config.js +26 -21
  299. package/src/constants.js +8 -10
  300. package/src/helper.js +469 -438
  301. package/src/index.js +24 -12
  302. package/src/js/images/detectFaces.js +28 -21
  303. package/src/js/images/findLandmarkRange.js +97 -90
  304. package/src/js/images/getScaledOffset.js +80 -75
  305. package/src/js/site/getSiteLevelFromState.js +26 -26
  306. package/src/js/site/isTVEnabled.js +10 -10
  307. package/src/session.js +32 -32
  308. package/src/styles.js +61 -61
  309. package/src/withNavigationFocus.js +28 -0
  310. package/dist/module/components/TextStyle.js +0 -45
  311. package/dist/module/components/TextStyle.js.map +0 -1
  312. package/dist/module/fonts/index.js +0 -2
  313. package/dist/module/fonts/index.js.map +0 -1
  314. package/dist/module/fonts/pluss60-icons.js +0 -5
  315. package/dist/module/fonts/pluss60-icons.js.map +0 -1
  316. package/dist/module/fonts/pluss60-icons.json +0 -1097
  317. package/src/components/TextStyle.js +0 -48
  318. package/src/fonts/index.js +0 -1
  319. package/src/fonts/pluss60-icons.js +0 -7
  320. package/src/fonts/pluss60-icons.json +0 -1097
@@ -1,19 +1,21 @@
1
1
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
- import React, { Component } from 'react';
5
- import { Dimensions, Image, ScrollView, Modal, View, Text, SafeAreaView, TouchableOpacity, StyleSheet, Platform, LogBox } from 'react-native';
6
- import * as ImageManipulator from 'expo-image-manipulator';
7
- import PropTypes from 'prop-types';
8
- import AutoHeightImage from 'react-native-auto-height-image';
9
- import { isIphoneX, getStatusBarHeight } from 'react-native-iphone-x-helper';
10
- import ImageCropOverlay from './ImageCropOverlay';
4
+ import React, { Component } from "react";
5
+ import { Text } from "@plusscommunities/pluss-core-app/components";
6
+ import { Dimensions, Image, ScrollView, Modal, View, TouchableOpacity, StyleSheet, LogBox, Alert } from "react-native";
7
+ import * as ImageManipulator from "expo-image-manipulator";
8
+ import * as MediaLibrary from "expo-media-library";
9
+ import { File, Paths } from "expo-file-system";
10
+ import PropTypes from "prop-types";
11
+ import AutoHeightImage from "react-native-auto-height-image";
12
+ import { withSafeAreaInsets, SafeAreaView, SafeAreaProvider } from "react-native-safe-area-context";
13
+ import ImageCropOverlay from "./ImageCropOverlay";
11
14
  const {
12
15
  width
13
- } = Dimensions.get('window');
14
- const topMargin = getStatusBarHeight() + (Platform.OS === 'ios' ? 50 : 20);
15
- LogBox.ignoreLogs(['componentWillReceiveProps', 'componentWillUpdate', 'componentWillMount']);
16
- LogBox.ignoreLogs(['Warning: componentWillMount is deprecated', 'Warning: componentWillReceiveProps is deprecated', 'Module RCTImageLoader requires']);
16
+ } = Dimensions.get("window");
17
+ LogBox.ignoreLogs(["componentWillReceiveProps", "componentWillUpdate", "componentWillMount"]);
18
+ LogBox.ignoreLogs(["Warning: componentWillMount is deprecated", "Warning: componentWillReceiveProps is deprecated", "Module RCTImageLoader requires"]);
17
19
  class ExpoImageManipulator extends Component {
18
20
  constructor(props) {
19
21
  super(props);
@@ -64,11 +66,11 @@ class ExpoImageManipulator extends Component {
64
66
  this.scrollOffset = event.nativeEvent.contentOffset.y;
65
67
  });
66
68
  _defineProperty(this, "getCropBounds", (actualWidth, actualHeight) => {
67
- let imageRatio = actualHeight / actualWidth;
68
- var originalHeight = Dimensions.get('window').height - 64;
69
- if (isIphoneX()) {
70
- originalHeight = Dimensions.get('window').height - 122;
71
- }
69
+ const imageRatio = actualHeight / actualWidth;
70
+ const {
71
+ contentHeight
72
+ } = this.state;
73
+ const originalHeight = contentHeight;
72
74
  let renderedImageWidth = imageRatio < originalHeight / width ? width : originalHeight / imageRatio;
73
75
  let renderedImageHeight = imageRatio < originalHeight / width ? width * imageRatio : originalHeight;
74
76
  let renderedImageY = (originalHeight - renderedImageHeight) / 2.0;
@@ -129,13 +131,19 @@ class ExpoImageManipulator extends Component {
129
131
  this.maxSizes.width = w1;
130
132
  this.maxSizes.height = h1;
131
133
  });
134
+ _defineProperty(this, "onContentLayout", event => {
135
+ this.setState({
136
+ contentHeight: event.nativeEvent.layout.height
137
+ });
138
+ });
132
139
  const {
133
140
  squareAspect
134
141
  } = this.props;
135
142
  this.state = {
136
143
  cropMode: false,
137
144
  processing: false,
138
- squareAspect
145
+ squareAspect,
146
+ contentHeight: Dimensions.get("window").height - 100 // fallback until onLayout fires
139
147
  };
140
148
  this.scrollOffset = 0;
141
149
  this.currentPos = {
@@ -164,31 +172,60 @@ class ExpoImageManipulator extends Component {
164
172
  });
165
173
  }
166
174
  async onConvertImageToEditableSize() {
167
- const {
168
- photo: {
169
- uri: rawUri
170
- }
171
- } = this.props;
172
- const {
173
- uri,
174
- width,
175
- height
176
- } = await ImageManipulator.manipulateAsync(rawUri, [{
177
- resize: {
178
- width: 1080
175
+ try {
176
+ const {
177
+ photo: {
178
+ uri: rawUri
179
+ }
180
+ } = this.props;
181
+
182
+ // expo-image-manipulator only works with file:// URIs.
183
+ // Resolve ph:// (iOS Photo Library) and https:// (remote/stock images) first.
184
+ let resolvedUri = rawUri;
185
+ if (rawUri !== null && rawUri !== void 0 && rawUri.startsWith("ph://")) {
186
+ const assetId = rawUri.replace("ph://", "");
187
+ const assetInfo = await MediaLibrary.getAssetInfoAsync(assetId, {
188
+ shouldDownloadFromNetwork: true
189
+ });
190
+ resolvedUri = assetInfo.localUri || rawUri;
191
+ } else if (rawUri !== null && rawUri !== void 0 && rawUri.startsWith("http")) {
192
+ var _rawUri$split$pop;
193
+ const ext = ((_rawUri$split$pop = rawUri.split(".").pop()) === null || _rawUri$split$pop === void 0 ? void 0 : _rawUri$split$pop.split("?")[0]) || "jpg";
194
+ const file = await File.downloadFileAsync(rawUri, new File(Paths.cache, `crop_${Date.now()}.${ext}`), {
195
+ idempotent: true
196
+ });
197
+ resolvedUri = file.uri;
179
198
  }
180
- }]);
181
- this.setState({
182
- uri
183
- });
184
- this.actualSize.width = width;
185
- this.actualSize.height = height;
199
+ const manipulatePromise = ImageManipulator.manipulateAsync(resolvedUri, [{
200
+ resize: {
201
+ width: 1080
202
+ }
203
+ }]);
204
+ // manipulateAsync can hang forever on non-file:// URIs (promise never settles).
205
+ // Promise.race with a timeout ensures the catch block fires.
206
+ const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error("Image processing timed out")), 15000));
207
+ const {
208
+ uri,
209
+ width,
210
+ height
211
+ } = await Promise.race([manipulatePromise, timeoutPromise]);
212
+ this.setState({
213
+ uri
214
+ });
215
+ this.actualSize.width = width;
216
+ this.actualSize.height = height;
217
+ } catch (e) {
218
+ console.log("onConvertImageToEditableSize error", e);
219
+ this.onToggleModal();
220
+ Alert.alert("Error", "Unable to prepare this image for editing. Please try a different image.");
221
+ }
186
222
  }
187
223
  // eslint-disable-next-line camelcase
188
224
  async UNSAFE_componentWillReceiveProps() {
189
225
  await this.onConvertImageToEditableSize();
190
226
  }
191
227
  render() {
228
+ var _this$props$insets;
192
229
  const {
193
230
  isVisible,
194
231
  onPictureChoosed
@@ -197,18 +234,17 @@ class ExpoImageManipulator extends Component {
197
234
  uri,
198
235
  base64,
199
236
  cropMode,
200
- processing
237
+ processing,
238
+ contentHeight
201
239
  } = this.state;
202
- let imageRatio = this.actualSize.height / this.actualSize.width;
203
- var originalHeight = Dimensions.get('window').height - 64;
204
- if (isIphoneX()) {
205
- originalHeight = Dimensions.get('window').height - 122;
206
- }
207
- let cropRatio = originalHeight / width;
208
- let cropWidth = imageRatio < cropRatio ? width : originalHeight / imageRatio;
209
- let cropHeight = imageRatio < cropRatio ? width * imageRatio : originalHeight;
210
- let cropInitialTop = (originalHeight - cropHeight) / 2.0;
211
- let cropInitialLeft = (width - cropWidth) / 2.0;
240
+ const imageRatio = this.actualSize.height / this.actualSize.width;
241
+ const originalHeight = contentHeight;
242
+ const topMargin = (((_this$props$insets = this.props.insets) === null || _this$props$insets === void 0 ? void 0 : _this$props$insets.top) ?? 0) + 50;
243
+ const cropRatio = originalHeight / width;
244
+ const cropWidth = imageRatio < cropRatio ? width : originalHeight / imageRatio;
245
+ const cropHeight = imageRatio < cropRatio ? width * imageRatio : originalHeight;
246
+ const cropInitialTop = (originalHeight - cropHeight) / 2.0;
247
+ const cropInitialLeft = (width - cropWidth) / 2.0;
212
248
  if (this.currentSize.width == 0 && cropMode) {
213
249
  this.currentSize.width = cropWidth;
214
250
  this.currentSize.height = cropHeight;
@@ -223,7 +259,7 @@ class ExpoImageManipulator extends Component {
223
259
  onRequestClose: () => {
224
260
  this.onToggleModal();
225
261
  }
226
- }, uri !== undefined ? /*#__PURE__*/React.createElement(View, {
262
+ }, uri !== undefined ? /*#__PURE__*/React.createElement(SafeAreaProvider, null, /*#__PURE__*/React.createElement(View, {
227
263
  style: styles.container
228
264
  }, /*#__PURE__*/React.createElement(SafeAreaView, {
229
265
  style: [{
@@ -231,7 +267,7 @@ class ExpoImageManipulator extends Component {
231
267
  }, styles.headerContainer]
232
268
  }, !cropMode ? /*#__PURE__*/React.createElement(View, {
233
269
  style: [styles.headerButtonContainer, {
234
- justifyContent: 'flex-end'
270
+ justifyContent: "flex-end"
235
271
  }]
236
272
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
237
273
  onPress: () => {
@@ -244,14 +280,14 @@ class ExpoImageManipulator extends Component {
244
280
  style: styles.headerButton
245
281
  }, /*#__PURE__*/React.createElement(Text, {
246
282
  style: styles.headerButtonText
247
- }, 'Done'))) : /*#__PURE__*/React.createElement(View, {
283
+ }, "Done"))) : /*#__PURE__*/React.createElement(View, {
248
284
  style: styles.headerButtonContainer
249
285
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
250
286
  onPress: this.onToggleModal,
251
287
  style: styles.headerButton
252
288
  }, /*#__PURE__*/React.createElement(Text, {
253
289
  style: styles.headerButtonText
254
- }, 'Cancel')), /*#__PURE__*/React.createElement(TouchableOpacity, {
290
+ }, "Cancel")), /*#__PURE__*/React.createElement(TouchableOpacity, {
255
291
  onPress: () => {
256
292
  this.onCropImage(() => {
257
293
  onPictureChoosed({
@@ -264,17 +300,19 @@ class ExpoImageManipulator extends Component {
264
300
  style: styles.headerButton
265
301
  }, /*#__PURE__*/React.createElement(Text, {
266
302
  style: styles.headerButtonText
267
- }, processing ? 'Processing' : 'Done')))), /*#__PURE__*/React.createElement(View, {
303
+ }, processing ? "Processing" : "Done")))), /*#__PURE__*/React.createElement(SafeAreaView, {
304
+ onLayout: this.onContentLayout,
268
305
  style: [styles.contentContainer, {
269
- width: Dimensions.get('window').width
270
- }]
306
+ width
307
+ }],
308
+ edges: ["bottom"]
271
309
  }, /*#__PURE__*/React.createElement(ScrollView, {
272
310
  style: {
273
- position: 'relative',
311
+ position: "relative",
274
312
  flex: 1
275
313
  },
276
314
  contentContainerStyle: {
277
- backgroundColor: 'black'
315
+ backgroundColor: "black"
278
316
  },
279
317
  maximumZoomScale: 5,
280
318
  minimumZoomScale: 0.5,
@@ -288,13 +326,12 @@ class ExpoImageManipulator extends Component {
288
326
  pinchGestureEnabled: false
289
327
  }, /*#__PURE__*/React.createElement(AutoHeightImage, {
290
328
  style: {
291
- backgroundColor: 'black',
292
- marginTop: cropInitialTop
329
+ backgroundColor: "black"
293
330
  },
294
331
  source: {
295
332
  uri
296
333
  },
297
- resizeMode: imageRatio >= 1 ? 'contain' : 'contain',
334
+ resizeMode: imageRatio >= 1 ? "contain" : "contain",
298
335
  width: width,
299
336
  height: originalHeight,
300
337
  onLayout: this.calculateMaxSizes
@@ -312,7 +349,7 @@ class ExpoImageManipulator extends Component {
312
349
  minHeight: 100,
313
350
  minWidth: 100,
314
351
  topMargin: topMargin
315
- })))) : /*#__PURE__*/React.createElement(View, {
352
+ }))))) : /*#__PURE__*/React.createElement(View, {
316
353
  style: styles.container
317
354
  }, /*#__PURE__*/React.createElement(Text, {
318
355
  style: styles.prepareMessageText
@@ -322,49 +359,49 @@ class ExpoImageManipulator extends Component {
322
359
  }
323
360
  const styles = StyleSheet.create({
324
361
  headerContainer: {
325
- flexDirection: 'row',
326
- backgroundColor: 'black',
327
- justifyContent: 'space-between'
362
+ flexDirection: "row",
363
+ backgroundColor: "black",
364
+ justifyContent: "space-between"
328
365
  },
329
366
  headerButtonContainer: {
330
367
  flex: 1,
331
- flexDirection: 'row',
332
- justifyContent: 'space-between'
368
+ flexDirection: "row",
369
+ justifyContent: "space-between"
333
370
  },
334
371
  headerButton: {
335
372
  marginHorizontal: 10,
336
373
  width: 60,
337
374
  height: 40,
338
- alignItems: 'center',
339
- justifyContent: 'center'
375
+ alignItems: "center",
376
+ justifyContent: "center"
340
377
  },
341
378
  headerButtonText: {
342
- fontWeight: '500',
343
- color: 'white',
379
+ fontWeight: "500",
380
+ color: "white",
344
381
  fontSize: 18
345
382
  },
346
383
  contentContainer: {
347
384
  flex: 1,
348
- backgroundColor: 'black'
385
+ backgroundColor: "black"
349
386
  },
350
387
  container: {
351
388
  flex: 1,
352
- backgroundColor: '#000d',
353
- alignItems: 'center',
354
- justifyContent: 'center'
389
+ backgroundColor: "#000d",
390
+ alignItems: "center",
391
+ justifyContent: "center"
355
392
  },
356
393
  prepareMessageText: {
357
- fontFamily: 'sf-bold',
394
+ fontFamily: "sf-bold",
358
395
  fontSize: 20,
359
- color: '#fff'
396
+ color: "#fff"
360
397
  }
361
398
  });
362
- export default ExpoImageManipulator;
399
+ export default withSafeAreaInsets(ExpoImageManipulator);
363
400
  ExpoImageManipulator.defaultProps = {
364
401
  onPictureChoosed: ({
365
402
  uri,
366
403
  base64
367
- }) => console.log('URI:', uri, base64),
404
+ }) => console.log("URI:", uri, base64),
368
405
  dragVelocity: 100,
369
406
  resizeVelocity: 50,
370
407
  saveOptions: {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","Dimensions","Image","ScrollView","Modal","View","Text","SafeAreaView","TouchableOpacity","StyleSheet","Platform","LogBox","ImageManipulator","PropTypes","AutoHeightImage","isIphoneX","getStatusBarHeight","ImageCropOverlay","width","get","topMargin","OS","ignoreLogs","ExpoImageManipulator","constructor","props","_defineProperty","onToggleModal","setState","cropMode","callback","processing","uri","state","getSize","actualWidth","actualHeight","cropObj","getCropBounds","height","uriToCrop","uriCroped","base64","croppedWidth","croppedHeight","crop","actualSize","event","scrollOffset","nativeEvent","contentOffset","y","imageRatio","originalHeight","renderedImageWidth","renderedImageHeight","renderedImageY","renderedImageX","renderImageObj","left","top","cropOverlayObj","currentPos","currentSize","intersectAreaObj","x","Math","max","num1","min","num2","originX","originY","saveOptions","manipResult","manipulateAsync","w1","layout","h1","squareAspect","maxSizes","componentDidMount","onConvertImageToEditableSize","photo","rawUri","resize","UNSAFE_componentWillReceiveProps","render","isVisible","onPictureChoosed","cropRatio","cropWidth","cropHeight","cropInitialTop","cropInitialLeft","createElement","animationType","transparent","visible","hardwareAccelerated","onRequestClose","undefined","style","styles","container","headerContainer","headerButtonContainer","justifyContent","onPress","headerButton","headerButtonText","onCropImage","contentContainer","position","flex","contentContainerStyle","backgroundColor","maximumZoomScale","minimumZoomScale","onScroll","onHandleScroll","bounces","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","ref","c","scrollView","scrollEventThrottle","scrollEnabled","pinchGestureEnabled","marginTop","source","resizeMode","onLayout","calculateMaxSizes","onLayoutChanged","initialWidth","initialHeight","initialTop","initialLeft","minHeight","minWidth","prepareMessageText","create","flexDirection","marginHorizontal","alignItems","fontWeight","color","fontSize","fontFamily","defaultProps","console","log","dragVelocity","resizeVelocity","compress","format","SaveFormat","PNG","propTypes","bool","isRequired","func","object","number"],"sources":["ExpoImageManipulator.js"],"sourcesContent":["import React, { Component } from 'react';\nimport {\n Dimensions,\n Image,\n ScrollView,\n Modal,\n View,\n Text,\n SafeAreaView,\n TouchableOpacity,\n StyleSheet,\n Platform,\n LogBox,\n} from 'react-native';\nimport * as ImageManipulator from 'expo-image-manipulator';\nimport PropTypes from 'prop-types';\nimport AutoHeightImage from 'react-native-auto-height-image';\nimport { isIphoneX, getStatusBarHeight } from 'react-native-iphone-x-helper';\nimport ImageCropOverlay from './ImageCropOverlay';\n\nconst { width } = Dimensions.get('window');\nconst topMargin = getStatusBarHeight() + (Platform.OS === 'ios' ? 50 : 20);\n\nLogBox.ignoreLogs(['componentWillReceiveProps', 'componentWillUpdate', 'componentWillMount']);\nLogBox.ignoreLogs([\n 'Warning: componentWillMount is deprecated',\n 'Warning: componentWillReceiveProps is deprecated',\n 'Module RCTImageLoader requires',\n]);\n\nclass ExpoImageManipulator extends Component {\n constructor(props) {\n super(props);\n const { squareAspect } = this.props;\n this.state = {\n cropMode: false,\n processing: false,\n squareAspect,\n };\n\n this.scrollOffset = 0;\n this.currentPos = { left: 0, top: 0 };\n this.currentSize = { width: 0, height: 0 };\n this.maxSizes = { width: 0, height: 0 };\n this.actualSize = { width: 0, height: 0 };\n }\n\n async componentDidMount() {\n await this.onConvertImageToEditableSize();\n\n // Set cropping by default\n this.setState({ cropMode: true });\n }\n\n async onConvertImageToEditableSize() {\n const {\n photo: { uri: rawUri },\n } = this.props;\n const { uri, width, height } = await ImageManipulator.manipulateAsync(rawUri, [{ resize: { width: 1080 } }]);\n this.setState({ uri });\n this.actualSize.width = width;\n this.actualSize.height = height;\n }\n\n onToggleModal = () => {\n this.props.onToggleModal();\n this.setState({ cropMode: false });\n };\n\n onCropImage = (callback = null) => {\n this.setState({ processing: true });\n const { uri } = this.state;\n Image.getSize(uri, async (actualWidth, actualHeight) => {\n let cropObj = this.getCropBounds(actualWidth, actualHeight);\n if (cropObj.height > 0 && cropObj.width > 0) {\n let uriToCrop = uri;\n const { uri: uriCroped, base64, width: croppedWidth, height: croppedHeight } = await this.crop(cropObj, uriToCrop);\n\n this.actualSize.width = croppedWidth;\n this.actualSize.height = croppedHeight;\n\n this.setState(\n {\n uri: uriCroped,\n base64,\n cropMode: false,\n processing: false,\n },\n () => {\n if (callback) callback();\n },\n );\n } else {\n this.setState({ cropMode: false, processing: false }, () => {\n if (callback) callback();\n });\n }\n });\n };\n\n onHandleScroll = event => {\n this.scrollOffset = event.nativeEvent.contentOffset.y;\n };\n\n getCropBounds = (actualWidth, actualHeight) => {\n let imageRatio = actualHeight / actualWidth;\n var originalHeight = Dimensions.get('window').height - 64;\n if (isIphoneX()) {\n originalHeight = Dimensions.get('window').height - 122;\n }\n let renderedImageWidth = imageRatio < originalHeight / width ? width : originalHeight / imageRatio;\n let renderedImageHeight = imageRatio < originalHeight / width ? width * imageRatio : originalHeight;\n\n let renderedImageY = (originalHeight - renderedImageHeight) / 2.0;\n let renderedImageX = (width - renderedImageWidth) / 2.0;\n\n const renderImageObj = {\n left: renderedImageX,\n top: renderedImageY,\n width: renderedImageWidth,\n height: renderedImageHeight,\n };\n const cropOverlayObj = {\n left: this.currentPos.left,\n top: this.currentPos.top,\n width: this.currentSize.width,\n height: this.currentSize.height,\n };\n\n var intersectAreaObj = {};\n\n let x = Math.max(renderImageObj.left, cropOverlayObj.left);\n let num1 = Math.min(renderImageObj.left + renderImageObj.width, cropOverlayObj.left + cropOverlayObj.width);\n let y = Math.max(renderImageObj.top, cropOverlayObj.top);\n let num2 = Math.min(renderImageObj.top + renderImageObj.height, cropOverlayObj.top + cropOverlayObj.height);\n if (num1 >= x && num2 >= y)\n intersectAreaObj = {\n originX: (x - renderedImageX) * (actualWidth / renderedImageWidth),\n originY: (y - renderedImageY) * (actualWidth / renderedImageWidth),\n width: (num1 - x) * (actualWidth / renderedImageWidth),\n height: (num2 - y) * (actualWidth / renderedImageWidth),\n };\n else {\n intersectAreaObj = {\n originX: x - renderedImageX,\n originY: y - renderedImageY,\n width: 0,\n height: 0,\n };\n }\n return intersectAreaObj;\n };\n\n crop = async (cropObj, uri) => {\n const { saveOptions } = this.props;\n if (cropObj.height > 0 && cropObj.width > 0) {\n const manipResult = await ImageManipulator.manipulateAsync(\n uri,\n [\n {\n crop: cropObj,\n },\n ],\n saveOptions,\n );\n return manipResult;\n }\n return {\n uri: null,\n base64: null,\n };\n };\n\n calculateMaxSizes = event => {\n let w1 = event.nativeEvent.layout.width || 100;\n let h1 = event.nativeEvent.layout.height || 100;\n if (this.state.squareAspect) {\n if (w1 < h1) h1 = w1;\n else w1 = h1;\n }\n this.maxSizes.width = w1;\n this.maxSizes.height = h1;\n };\n\n // eslint-disable-next-line camelcase\n async UNSAFE_componentWillReceiveProps() {\n await this.onConvertImageToEditableSize();\n }\n\n render() {\n const { isVisible, onPictureChoosed } = this.props;\n const { uri, base64, cropMode, processing } = this.state;\n\n let imageRatio = this.actualSize.height / this.actualSize.width;\n var originalHeight = Dimensions.get('window').height - 64;\n if (isIphoneX()) {\n originalHeight = Dimensions.get('window').height - 122;\n }\n\n let cropRatio = originalHeight / width;\n\n let cropWidth = imageRatio < cropRatio ? width : originalHeight / imageRatio;\n let cropHeight = imageRatio < cropRatio ? width * imageRatio : originalHeight;\n\n let cropInitialTop = (originalHeight - cropHeight) / 2.0;\n let cropInitialLeft = (width - cropWidth) / 2.0;\n\n if (this.currentSize.width == 0 && cropMode) {\n this.currentSize.width = cropWidth;\n this.currentSize.height = cropHeight;\n\n this.currentPos.top = cropInitialTop;\n this.currentPos.left = cropInitialLeft;\n }\n\n return (\n <Modal\n animationType=\"slide\"\n transparent={true}\n visible={isVisible}\n hardwareAccelerated\n onRequestClose={() => {\n this.onToggleModal();\n }}\n >\n {uri !== undefined ? (\n <View style={styles.container}>\n <SafeAreaView style={[{ width }, styles.headerContainer]}>\n {!cropMode ? (\n <View style={[styles.headerButtonContainer, { justifyContent: 'flex-end' }]}>\n <TouchableOpacity\n onPress={() => {\n onPictureChoosed({ uri, base64 });\n this.onToggleModal();\n }}\n style={styles.headerButton}\n >\n <Text style={styles.headerButtonText}>{'Done'}</Text>\n </TouchableOpacity>\n </View>\n ) : (\n <View style={styles.headerButtonContainer}>\n <TouchableOpacity onPress={this.onToggleModal} style={styles.headerButton}>\n <Text style={styles.headerButtonText}>{'Cancel'}</Text>\n </TouchableOpacity>\n <TouchableOpacity\n onPress={() => {\n this.onCropImage(() => {\n onPictureChoosed({ uri: this.state.uri, base64: this.state.base64 });\n this.onToggleModal();\n });\n }}\n style={styles.headerButton}\n >\n <Text style={styles.headerButtonText}>{processing ? 'Processing' : 'Done'}</Text>\n </TouchableOpacity>\n </View>\n )}\n </SafeAreaView>\n <View style={[styles.contentContainer, { width: Dimensions.get('window').width }]}>\n <ScrollView\n style={{ position: 'relative', flex: 1 }}\n contentContainerStyle={{ backgroundColor: 'black' }}\n maximumZoomScale={5}\n minimumZoomScale={0.5}\n onScroll={this.onHandleScroll}\n bounces={false}\n showsHorizontalScrollIndicator={false}\n showsVerticalScrollIndicator={false}\n ref={c => (this.scrollView = c)}\n scrollEventThrottle={16}\n scrollEnabled={false}\n pinchGestureEnabled={false}\n >\n <AutoHeightImage\n style={{ backgroundColor: 'black', marginTop: cropInitialTop }}\n source={{ uri }}\n resizeMode={imageRatio >= 1 ? 'contain' : 'contain'}\n width={width}\n height={originalHeight}\n onLayout={this.calculateMaxSizes}\n />\n {!!cropMode && (\n <ImageCropOverlay\n onLayoutChanged={(top, left, width, height) => {\n this.currentSize.width = width;\n this.currentSize.height = height;\n this.currentPos.top = top;\n this.currentPos.left = left;\n }}\n initialWidth={cropWidth}\n initialHeight={cropHeight}\n initialTop={cropInitialTop}\n initialLeft={cropInitialLeft}\n minHeight={100}\n minWidth={100}\n topMargin={topMargin}\n />\n )}\n </ScrollView>\n </View>\n </View>\n ) : (\n <View style={styles.container}>\n <Text style={styles.prepareMessageText}>Preparing...</Text>\n </View>\n )}\n </Modal>\n );\n // }\n }\n}\n\nconst styles = StyleSheet.create({\n headerContainer: {\n flexDirection: 'row',\n backgroundColor: 'black',\n justifyContent: 'space-between',\n },\n headerButtonContainer: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n headerButton: {\n marginHorizontal: 10,\n width: 60,\n height: 40,\n alignItems: 'center',\n justifyContent: 'center',\n },\n headerButtonText: {\n fontWeight: '500',\n color: 'white',\n fontSize: 18,\n },\n contentContainer: {\n flex: 1,\n backgroundColor: 'black',\n },\n container: {\n flex: 1,\n backgroundColor: '#000d',\n alignItems: 'center',\n justifyContent: 'center',\n },\n prepareMessageText: {\n fontFamily: 'sf-bold',\n fontSize: 20,\n color: '#fff',\n },\n});\n\nexport default ExpoImageManipulator;\n\nExpoImageManipulator.defaultProps = {\n onPictureChoosed: ({ uri, base64 }) => console.log('URI:', uri, base64),\n dragVelocity: 100,\n resizeVelocity: 50,\n saveOptions: {\n compress: 1,\n format: ImageManipulator.SaveFormat.PNG,\n base64: false,\n },\n};\n\nExpoImageManipulator.propTypes = {\n isVisible: PropTypes.bool.isRequired,\n onPictureChoosed: PropTypes.func,\n saveOptions: PropTypes.object,\n photo: PropTypes.object.isRequired,\n onToggleModal: PropTypes.func.isRequired,\n dragVelocity: PropTypes.number,\n resizeVelocity: PropTypes.number,\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SACEC,UAAU,EACVC,KAAK,EACLC,UAAU,EACVC,KAAK,EACLC,IAAI,EACJC,IAAI,EACJC,YAAY,EACZC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,EACRC,MAAM,QACD,cAAc;AACrB,OAAO,KAAKC,gBAAgB,MAAM,wBAAwB;AAC1D,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,eAAe,MAAM,gCAAgC;AAC5D,SAASC,SAAS,EAAEC,kBAAkB,QAAQ,8BAA8B;AAC5E,OAAOC,gBAAgB,MAAM,oBAAoB;AAEjD,MAAM;EAAEC;AAAM,CAAC,GAAGjB,UAAU,CAACkB,GAAG,CAAC,QAAQ,CAAC;AAC1C,MAAMC,SAAS,GAAGJ,kBAAkB,CAAC,CAAC,IAAIN,QAAQ,CAACW,EAAE,KAAK,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;AAE1EV,MAAM,CAACW,UAAU,CAAC,CAAC,2BAA2B,EAAE,qBAAqB,EAAE,oBAAoB,CAAC,CAAC;AAC7FX,MAAM,CAACW,UAAU,CAAC,CAChB,2CAA2C,EAC3C,kDAAkD,EAClD,gCAAgC,CACjC,CAAC;AAEF,MAAMC,oBAAoB,SAASvB,SAAS,CAAC;EAC3CwB,WAAWA,C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ignoreList":[]}
1
+ {"version":3,"names":["React","Component","Text","Dimensions","Image","ScrollView","Modal","View","TouchableOpacity","StyleSheet","LogBox","Alert","ImageManipulator","MediaLibrary","File","Paths","PropTypes","AutoHeightImage","withSafeAreaInsets","SafeAreaView","SafeAreaProvider","ImageCropOverlay","width","get","ignoreLogs","ExpoImageManipulator","constructor","props","_defineProperty","onToggleModal","setState","cropMode","callback","processing","uri","state","getSize","actualWidth","actualHeight","cropObj","getCropBounds","height","uriToCrop","uriCroped","base64","croppedWidth","croppedHeight","crop","actualSize","event","scrollOffset","nativeEvent","contentOffset","y","imageRatio","contentHeight","originalHeight","renderedImageWidth","renderedImageHeight","renderedImageY","renderedImageX","renderImageObj","left","top","cropOverlayObj","currentPos","currentSize","intersectAreaObj","x","Math","max","num1","min","num2","originX","originY","saveOptions","manipResult","manipulateAsync","w1","layout","h1","squareAspect","maxSizes","componentDidMount","onConvertImageToEditableSize","photo","rawUri","resolvedUri","startsWith","assetId","replace","assetInfo","getAssetInfoAsync","shouldDownloadFromNetwork","localUri","_rawUri$split$pop","ext","split","pop","file","downloadFileAsync","cache","Date","now","idempotent","manipulatePromise","resize","timeoutPromise","Promise","_","reject","setTimeout","Error","race","e","console","log","alert","UNSAFE_componentWillReceiveProps","render","_this$props$insets","isVisible","onPictureChoosed","topMargin","insets","cropRatio","cropWidth","cropHeight","cropInitialTop","cropInitialLeft","createElement","animationType","transparent","visible","hardwareAccelerated","onRequestClose","undefined","style","styles","container","headerContainer","headerButtonContainer","justifyContent","onPress","headerButton","headerButtonText","onCropImage","onLayout","onContentLayout","contentContainer","edges","position","flex","contentContainerStyle","backgroundColor","maximumZoomScale","minimumZoomScale","onScroll","onHandleScroll","bounces","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","ref","c","scrollView","scrollEventThrottle","scrollEnabled","pinchGestureEnabled","source","resizeMode","calculateMaxSizes","onLayoutChanged","initialWidth","initialHeight","initialTop","initialLeft","minHeight","minWidth","prepareMessageText","create","flexDirection","marginHorizontal","alignItems","fontWeight","color","fontSize","fontFamily","defaultProps","dragVelocity","resizeVelocity","compress","format","SaveFormat","PNG","propTypes","bool","isRequired","func","object","number"],"sources":["ExpoImageManipulator.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport {\n\tDimensions,\n\tImage,\n\tScrollView,\n\tModal,\n\tView,\n\tTouchableOpacity,\n\tStyleSheet,\n\tLogBox,\n\tAlert,\n} from \"react-native\";\nimport * as ImageManipulator from \"expo-image-manipulator\";\nimport * as MediaLibrary from \"expo-media-library\";\nimport { File, Paths } from \"expo-file-system\";\nimport PropTypes from \"prop-types\";\nimport AutoHeightImage from \"react-native-auto-height-image\";\nimport {\n\twithSafeAreaInsets,\n\tSafeAreaView,\n\tSafeAreaProvider,\n} from \"react-native-safe-area-context\";\nimport ImageCropOverlay from \"./ImageCropOverlay\";\n\nconst { width } = Dimensions.get(\"window\");\n\nLogBox.ignoreLogs([\n\t\"componentWillReceiveProps\",\n\t\"componentWillUpdate\",\n\t\"componentWillMount\",\n]);\nLogBox.ignoreLogs([\n\t\"Warning: componentWillMount is deprecated\",\n\t\"Warning: componentWillReceiveProps is deprecated\",\n\t\"Module RCTImageLoader requires\",\n]);\n\nclass ExpoImageManipulator extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tconst { squareAspect } = this.props;\n\t\tthis.state = {\n\t\t\tcropMode: false,\n\t\t\tprocessing: false,\n\t\t\tsquareAspect,\n\t\t\tcontentHeight: Dimensions.get(\"window\").height - 100, // fallback until onLayout fires\n\t\t};\n\n\t\tthis.scrollOffset = 0;\n\t\tthis.currentPos = { left: 0, top: 0 };\n\t\tthis.currentSize = { width: 0, height: 0 };\n\t\tthis.maxSizes = { width: 0, height: 0 };\n\t\tthis.actualSize = { width: 0, height: 0 };\n\t}\n\n\tasync componentDidMount() {\n\t\tawait this.onConvertImageToEditableSize();\n\n\t\t// Set cropping by default\n\t\tthis.setState({ cropMode: true });\n\t}\n\n\tasync onConvertImageToEditableSize() {\n\t\ttry {\n\t\t\tconst {\n\t\t\t\tphoto: { uri: rawUri },\n\t\t\t} = this.props;\n\n\t\t\t// expo-image-manipulator only works with file:// URIs.\n\t\t\t// Resolve ph:// (iOS Photo Library) and https:// (remote/stock images) first.\n\t\t\tlet resolvedUri = rawUri;\n\t\t\tif (rawUri?.startsWith(\"ph://\")) {\n\t\t\t\tconst assetId = rawUri.replace(\"ph://\", \"\");\n\t\t\t\tconst assetInfo = await MediaLibrary.getAssetInfoAsync(assetId, {\n\t\t\t\t\tshouldDownloadFromNetwork: true,\n\t\t\t\t});\n\t\t\t\tresolvedUri = assetInfo.localUri || rawUri;\n\t\t\t} else if (rawUri?.startsWith(\"http\")) {\n\t\t\t\tconst ext = rawUri.split(\".\").pop()?.split(\"?\")[0] || \"jpg\";\n\t\t\t\tconst file = await File.downloadFileAsync(\n\t\t\t\t\trawUri,\n\t\t\t\t\tnew File(Paths.cache, `crop_${Date.now()}.${ext}`),\n\t\t\t\t\t{ idempotent: true },\n\t\t\t\t);\n\t\t\t\tresolvedUri = file.uri;\n\t\t\t}\n\n\t\t\tconst manipulatePromise = ImageManipulator.manipulateAsync(resolvedUri, [\n\t\t\t\t{ resize: { width: 1080 } },\n\t\t\t]);\n\t\t\t// manipulateAsync can hang forever on non-file:// URIs (promise never settles).\n\t\t\t// Promise.race with a timeout ensures the catch block fires.\n\t\t\tconst timeoutPromise = new Promise((_, reject) =>\n\t\t\t\tsetTimeout(\n\t\t\t\t\t() => reject(new Error(\"Image processing timed out\")),\n\t\t\t\t\t15000,\n\t\t\t\t),\n\t\t\t);\n\t\t\tconst { uri, width, height } = await Promise.race([\n\t\t\t\tmanipulatePromise,\n\t\t\t\ttimeoutPromise,\n\t\t\t]);\n\t\t\tthis.setState({ uri });\n\t\t\tthis.actualSize.width = width;\n\t\t\tthis.actualSize.height = height;\n\t\t} catch (e) {\n\t\t\tconsole.log(\"onConvertImageToEditableSize error\", e);\n\t\t\tthis.onToggleModal();\n\t\t\tAlert.alert(\n\t\t\t\t\"Error\",\n\t\t\t\t\"Unable to prepare this image for editing. Please try a different image.\",\n\t\t\t);\n\t\t}\n\t}\n\n\tonToggleModal = () => {\n\t\tthis.props.onToggleModal();\n\t\tthis.setState({ cropMode: false });\n\t};\n\n\tonCropImage = (callback = null) => {\n\t\tthis.setState({ processing: true });\n\t\tconst { uri } = this.state;\n\t\tImage.getSize(uri, async (actualWidth, actualHeight) => {\n\t\t\tlet cropObj = this.getCropBounds(actualWidth, actualHeight);\n\t\t\tif (cropObj.height > 0 && cropObj.width > 0) {\n\t\t\t\tlet uriToCrop = uri;\n\t\t\t\tconst {\n\t\t\t\t\turi: uriCroped,\n\t\t\t\t\tbase64,\n\t\t\t\t\twidth: croppedWidth,\n\t\t\t\t\theight: croppedHeight,\n\t\t\t\t} = await this.crop(cropObj, uriToCrop);\n\n\t\t\t\tthis.actualSize.width = croppedWidth;\n\t\t\t\tthis.actualSize.height = croppedHeight;\n\n\t\t\t\tthis.setState(\n\t\t\t\t\t{\n\t\t\t\t\t\turi: uriCroped,\n\t\t\t\t\t\tbase64,\n\t\t\t\t\t\tcropMode: false,\n\t\t\t\t\t\tprocessing: false,\n\t\t\t\t\t},\n\t\t\t\t\t() => {\n\t\t\t\t\t\tif (callback) callback();\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.setState({ cropMode: false, processing: false }, () => {\n\t\t\t\t\tif (callback) callback();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t};\n\n\tonHandleScroll = (event) => {\n\t\tthis.scrollOffset = event.nativeEvent.contentOffset.y;\n\t};\n\n\tgetCropBounds = (actualWidth, actualHeight) => {\n\t\tconst imageRatio = actualHeight / actualWidth;\n\t\tconst { contentHeight } = this.state;\n\t\tconst originalHeight = contentHeight;\n\t\tlet renderedImageWidth =\n\t\t\timageRatio < originalHeight / width ? width : originalHeight / imageRatio;\n\t\tlet renderedImageHeight =\n\t\t\timageRatio < originalHeight / width ? width * imageRatio : originalHeight;\n\n\t\tlet renderedImageY = (originalHeight - renderedImageHeight) / 2.0;\n\t\tlet renderedImageX = (width - renderedImageWidth) / 2.0;\n\n\t\tconst renderImageObj = {\n\t\t\tleft: renderedImageX,\n\t\t\ttop: renderedImageY,\n\t\t\twidth: renderedImageWidth,\n\t\t\theight: renderedImageHeight,\n\t\t};\n\t\tconst cropOverlayObj = {\n\t\t\tleft: this.currentPos.left,\n\t\t\ttop: this.currentPos.top,\n\t\t\twidth: this.currentSize.width,\n\t\t\theight: this.currentSize.height,\n\t\t};\n\n\t\tvar intersectAreaObj = {};\n\n\t\tlet x = Math.max(renderImageObj.left, cropOverlayObj.left);\n\t\tlet num1 = Math.min(\n\t\t\trenderImageObj.left + renderImageObj.width,\n\t\t\tcropOverlayObj.left + cropOverlayObj.width,\n\t\t);\n\t\tlet y = Math.max(renderImageObj.top, cropOverlayObj.top);\n\t\tlet num2 = Math.min(\n\t\t\trenderImageObj.top + renderImageObj.height,\n\t\t\tcropOverlayObj.top + cropOverlayObj.height,\n\t\t);\n\t\tif (num1 >= x && num2 >= y)\n\t\t\tintersectAreaObj = {\n\t\t\t\toriginX: (x - renderedImageX) * (actualWidth / renderedImageWidth),\n\t\t\t\toriginY: (y - renderedImageY) * (actualWidth / renderedImageWidth),\n\t\t\t\twidth: (num1 - x) * (actualWidth / renderedImageWidth),\n\t\t\t\theight: (num2 - y) * (actualWidth / renderedImageWidth),\n\t\t\t};\n\t\telse {\n\t\t\tintersectAreaObj = {\n\t\t\t\toriginX: x - renderedImageX,\n\t\t\t\toriginY: y - renderedImageY,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t};\n\t\t}\n\t\treturn intersectAreaObj;\n\t};\n\n\tcrop = async (cropObj, uri) => {\n\t\tconst { saveOptions } = this.props;\n\t\tif (cropObj.height > 0 && cropObj.width > 0) {\n\t\t\tconst manipResult = await ImageManipulator.manipulateAsync(\n\t\t\t\turi,\n\t\t\t\t[\n\t\t\t\t\t{\n\t\t\t\t\t\tcrop: cropObj,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tsaveOptions,\n\t\t\t);\n\t\t\treturn manipResult;\n\t\t}\n\t\treturn {\n\t\t\turi: null,\n\t\t\tbase64: null,\n\t\t};\n\t};\n\n\tcalculateMaxSizes = (event) => {\n\t\tlet w1 = event.nativeEvent.layout.width || 100;\n\t\tlet h1 = event.nativeEvent.layout.height || 100;\n\t\tif (this.state.squareAspect) {\n\t\t\tif (w1 < h1) h1 = w1;\n\t\t\telse w1 = h1;\n\t\t}\n\t\tthis.maxSizes.width = w1;\n\t\tthis.maxSizes.height = h1;\n\t};\n\n\t// eslint-disable-next-line camelcase\n\tasync UNSAFE_componentWillReceiveProps() {\n\t\tawait this.onConvertImageToEditableSize();\n\t}\n\n\tonContentLayout = (event) => {\n\t\tthis.setState({\n\t\t\tcontentHeight: event.nativeEvent.layout.height,\n\t\t});\n\t};\n\n\trender() {\n\t\tconst { isVisible, onPictureChoosed } = this.props;\n\t\tconst { uri, base64, cropMode, processing, contentHeight } = this.state;\n\n\t\tconst imageRatio = this.actualSize.height / this.actualSize.width;\n\t\tconst originalHeight = contentHeight;\n\t\tconst topMargin = (this.props.insets?.top ?? 0) + 50;\n\n\t\tconst cropRatio = originalHeight / width;\n\n\t\tconst cropWidth =\n\t\t\timageRatio < cropRatio ? width : originalHeight / imageRatio;\n\t\tconst cropHeight =\n\t\t\timageRatio < cropRatio ? width * imageRatio : originalHeight;\n\n\t\tconst cropInitialTop = (originalHeight - cropHeight) / 2.0;\n\t\tconst cropInitialLeft = (width - cropWidth) / 2.0;\n\n\t\tif (this.currentSize.width == 0 && cropMode) {\n\t\t\tthis.currentSize.width = cropWidth;\n\t\t\tthis.currentSize.height = cropHeight;\n\n\t\t\tthis.currentPos.top = cropInitialTop;\n\t\t\tthis.currentPos.left = cropInitialLeft;\n\t\t}\n\n\t\treturn (\n\t\t\t<Modal\n\t\t\t\tanimationType=\"slide\"\n\t\t\t\ttransparent={true}\n\t\t\t\tvisible={isVisible}\n\t\t\t\thardwareAccelerated\n\t\t\t\tonRequestClose={() => {\n\t\t\t\t\tthis.onToggleModal();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{uri !== undefined ? (\n\t\t\t\t\t<SafeAreaProvider>\n\t\t\t\t\t\t<View style={styles.container}>\n\t\t\t\t\t\t\t<SafeAreaView style={[{ width }, styles.headerContainer]}>\n\t\t\t\t\t\t\t\t{!cropMode ? (\n\t\t\t\t\t\t\t\t\t<View\n\t\t\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\t\t\tstyles.headerButtonContainer,\n\t\t\t\t\t\t\t\t\t\t\t{ justifyContent: \"flex-end\" },\n\t\t\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\t\t\t\t\t\tonPictureChoosed({ uri, base64 });\n\t\t\t\t\t\t\t\t\t\t\t\tthis.onToggleModal();\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\tstyle={styles.headerButton}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Text style={styles.headerButtonText}>{\"Done\"}</Text>\n\t\t\t\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t<View style={styles.headerButtonContainer}>\n\t\t\t\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\t\t\t\tonPress={this.onToggleModal}\n\t\t\t\t\t\t\t\t\t\t\tstyle={styles.headerButton}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Text style={styles.headerButtonText}>{\"Cancel\"}</Text>\n\t\t\t\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.onCropImage(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tonPictureChoosed({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\turi: this.state.uri,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbase64: this.state.base64,\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.onToggleModal();\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\tstyle={styles.headerButton}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Text style={styles.headerButtonText}>\n\t\t\t\t\t\t\t\t\t\t\t\t{processing ? \"Processing\" : \"Done\"}\n\t\t\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</SafeAreaView>\n\t\t\t\t\t\t\t<SafeAreaView\n\t\t\t\t\t\t\t\tonLayout={this.onContentLayout}\n\t\t\t\t\t\t\t\tstyle={[styles.contentContainer, { width }]}\n\t\t\t\t\t\t\t\tedges={[\"bottom\"]}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<ScrollView\n\t\t\t\t\t\t\t\t\tstyle={{ position: \"relative\", flex: 1 }}\n\t\t\t\t\t\t\t\t\tcontentContainerStyle={{ backgroundColor: \"black\" }}\n\t\t\t\t\t\t\t\t\tmaximumZoomScale={5}\n\t\t\t\t\t\t\t\t\tminimumZoomScale={0.5}\n\t\t\t\t\t\t\t\t\tonScroll={this.onHandleScroll}\n\t\t\t\t\t\t\t\t\tbounces={false}\n\t\t\t\t\t\t\t\t\tshowsHorizontalScrollIndicator={false}\n\t\t\t\t\t\t\t\t\tshowsVerticalScrollIndicator={false}\n\t\t\t\t\t\t\t\t\tref={(c) => (this.scrollView = c)}\n\t\t\t\t\t\t\t\t\tscrollEventThrottle={16}\n\t\t\t\t\t\t\t\t\tscrollEnabled={false}\n\t\t\t\t\t\t\t\t\tpinchGestureEnabled={false}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<AutoHeightImage\n\t\t\t\t\t\t\t\t\t\tstyle={{ backgroundColor: \"black\" }}\n\t\t\t\t\t\t\t\t\t\tsource={{ uri }}\n\t\t\t\t\t\t\t\t\t\tresizeMode={imageRatio >= 1 ? \"contain\" : \"contain\"}\n\t\t\t\t\t\t\t\t\t\twidth={width}\n\t\t\t\t\t\t\t\t\t\theight={originalHeight}\n\t\t\t\t\t\t\t\t\t\tonLayout={this.calculateMaxSizes}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{!!cropMode && (\n\t\t\t\t\t\t\t\t\t\t<ImageCropOverlay\n\t\t\t\t\t\t\t\t\t\t\tonLayoutChanged={(top, left, width, height) => {\n\t\t\t\t\t\t\t\t\t\t\t\tthis.currentSize.width = width;\n\t\t\t\t\t\t\t\t\t\t\t\tthis.currentSize.height = height;\n\t\t\t\t\t\t\t\t\t\t\t\tthis.currentPos.top = top;\n\t\t\t\t\t\t\t\t\t\t\t\tthis.currentPos.left = left;\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\tinitialWidth={cropWidth}\n\t\t\t\t\t\t\t\t\t\t\tinitialHeight={cropHeight}\n\t\t\t\t\t\t\t\t\t\t\tinitialTop={cropInitialTop}\n\t\t\t\t\t\t\t\t\t\t\tinitialLeft={cropInitialLeft}\n\t\t\t\t\t\t\t\t\t\t\tminHeight={100}\n\t\t\t\t\t\t\t\t\t\t\tminWidth={100}\n\t\t\t\t\t\t\t\t\t\t\ttopMargin={topMargin}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</ScrollView>\n\t\t\t\t\t\t\t</SafeAreaView>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</SafeAreaProvider>\n\t\t\t\t) : (\n\t\t\t\t\t<View style={styles.container}>\n\t\t\t\t\t\t<Text style={styles.prepareMessageText}>Preparing...</Text>\n\t\t\t\t\t</View>\n\t\t\t\t)}\n\t\t\t</Modal>\n\t\t);\n\t\t// }\n\t}\n}\n\nconst styles = StyleSheet.create({\n\theaderContainer: {\n\t\tflexDirection: \"row\",\n\t\tbackgroundColor: \"black\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\theaderButtonContainer: {\n\t\tflex: 1,\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\theaderButton: {\n\t\tmarginHorizontal: 10,\n\t\twidth: 60,\n\t\theight: 40,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\theaderButtonText: {\n\t\tfontWeight: \"500\",\n\t\tcolor: \"white\",\n\t\tfontSize: 18,\n\t},\n\tcontentContainer: {\n\t\tflex: 1,\n\t\tbackgroundColor: \"black\",\n\t},\n\tcontainer: {\n\t\tflex: 1,\n\t\tbackgroundColor: \"#000d\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\tprepareMessageText: {\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 20,\n\t\tcolor: \"#fff\",\n\t},\n});\n\nexport default withSafeAreaInsets(ExpoImageManipulator);\n\nExpoImageManipulator.defaultProps = {\n\tonPictureChoosed: ({ uri, base64 }) => console.log(\"URI:\", uri, base64),\n\tdragVelocity: 100,\n\tresizeVelocity: 50,\n\tsaveOptions: {\n\t\tcompress: 1,\n\t\tformat: ImageManipulator.SaveFormat.PNG,\n\t\tbase64: false,\n\t},\n};\n\nExpoImageManipulator.propTypes = {\n\tisVisible: PropTypes.bool.isRequired,\n\tonPictureChoosed: PropTypes.func,\n\tsaveOptions: PropTypes.object,\n\tphoto: PropTypes.object.isRequired,\n\tonToggleModal: PropTypes.func.isRequired,\n\tdragVelocity: PropTypes.number,\n\tresizeVelocity: PropTypes.number,\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SACCC,UAAU,EACVC,KAAK,EACLC,UAAU,EACVC,KAAK,EACLC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,MAAM,EACNC,KAAK,QACC,cAAc;AACrB,OAAO,KAAKC,gBAAgB,MAAM,wBAAwB;AAC1D,OAAO,KAAKC,YAAY,MAAM,oBAAoB;AAClD,SAASC,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AAC9C,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,eAAe,MAAM,gCAAgC;AAC5D,SACCC,kBAAkB,EAClBC,YAAY,EACZC,gBAAgB,QACV,gCAAgC;AACvC,OAAOC,gBAAgB,MAAM,oBAAoB;AAEjD,MAAM;EAAEC;AAAM,CAAC,GAAGnB,UAAU,CAACoB,GAAG,CAAC,QAAQ,CAAC;AAE1Cb,MAAM,CAACc,UAAU,CAAC,CACjB,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,CACpB,CAAC;AACFd,MAAM,CAACc,UAAU,CAAC,CACjB,2CAA2C,EAC3C,kDAAkD,EAClD,gCAAgC,CAChC,CAAC;AAEF,MAAMC,oBAAoB,SAASxB,SAAS,CAAC;EAC5CyB,WAAWA,CAACC,KAAK,EAAE;IAClB,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,wBA4EE,MAAM;MACrB,IAAI,CAACD,KAAK,CAACE,aAAa,CAAC,CAAC;MAC1B,IAAI,CAACC,QAAQ,CAAC;QAAEC,QAAQ,EAAE;MAAM,CAAC,CAAC;IACnC,CAAC;IAAAH,eAAA,sBAEa,CAACI,QAAQ,GAAG,IAAI,KAAK;MAClC,IAAI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