@plusscommunities/pluss-core-app 8.0.28-beta.2 → 8.0.29
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/package.json
CHANGED
|
@@ -296,96 +296,96 @@ class ExpoImageManipulator extends Component {
|
|
|
296
296
|
<SafeAreaProvider>
|
|
297
297
|
<View style={styles.container}>
|
|
298
298
|
<SafeAreaView style={[{ width }, styles.headerContainer]}>
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
>
|
|
306
|
-
<TouchableOpacity
|
|
307
|
-
onPress={() => {
|
|
308
|
-
onPictureChoosed({ uri, base64 });
|
|
309
|
-
this.onToggleModal();
|
|
310
|
-
}}
|
|
311
|
-
style={styles.headerButton}
|
|
312
|
-
>
|
|
313
|
-
<Text style={styles.headerButtonText}>{"Done"}</Text>
|
|
314
|
-
</TouchableOpacity>
|
|
315
|
-
</View>
|
|
316
|
-
) : (
|
|
317
|
-
<View style={styles.headerButtonContainer}>
|
|
318
|
-
<TouchableOpacity
|
|
319
|
-
onPress={this.onToggleModal}
|
|
320
|
-
style={styles.headerButton}
|
|
299
|
+
{!cropMode ? (
|
|
300
|
+
<View
|
|
301
|
+
style={[
|
|
302
|
+
styles.headerButtonContainer,
|
|
303
|
+
{ justifyContent: "flex-end" },
|
|
304
|
+
]}
|
|
321
305
|
>
|
|
322
|
-
<
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
onPress={() => {
|
|
326
|
-
this.onCropImage(() => {
|
|
327
|
-
onPictureChoosed({
|
|
328
|
-
uri: this.state.uri,
|
|
329
|
-
base64: this.state.base64,
|
|
330
|
-
});
|
|
306
|
+
<TouchableOpacity
|
|
307
|
+
onPress={() => {
|
|
308
|
+
onPictureChoosed({ uri, base64 });
|
|
331
309
|
this.onToggleModal();
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
310
|
+
}}
|
|
311
|
+
style={styles.headerButton}
|
|
312
|
+
>
|
|
313
|
+
<Text style={styles.headerButtonText}>{"Done"}</Text>
|
|
314
|
+
</TouchableOpacity>
|
|
315
|
+
</View>
|
|
316
|
+
) : (
|
|
317
|
+
<View style={styles.headerButtonContainer}>
|
|
318
|
+
<TouchableOpacity
|
|
319
|
+
onPress={this.onToggleModal}
|
|
320
|
+
style={styles.headerButton}
|
|
321
|
+
>
|
|
322
|
+
<Text style={styles.headerButtonText}>{"Cancel"}</Text>
|
|
323
|
+
</TouchableOpacity>
|
|
324
|
+
<TouchableOpacity
|
|
325
|
+
onPress={() => {
|
|
326
|
+
this.onCropImage(() => {
|
|
327
|
+
onPictureChoosed({
|
|
328
|
+
uri: this.state.uri,
|
|
329
|
+
base64: this.state.base64,
|
|
330
|
+
});
|
|
331
|
+
this.onToggleModal();
|
|
332
|
+
});
|
|
333
|
+
}}
|
|
334
|
+
style={styles.headerButton}
|
|
335
|
+
>
|
|
336
|
+
<Text style={styles.headerButtonText}>
|
|
337
|
+
{processing ? "Processing" : "Done"}
|
|
338
|
+
</Text>
|
|
339
|
+
</TouchableOpacity>
|
|
340
|
+
</View>
|
|
341
|
+
)}
|
|
342
|
+
</SafeAreaView>
|
|
343
|
+
<SafeAreaView
|
|
344
|
+
onLayout={this.onContentLayout}
|
|
345
|
+
style={[styles.contentContainer, { width }]}
|
|
346
|
+
edges={["bottom"]}
|
|
361
347
|
>
|
|
362
|
-
<
|
|
363
|
-
style={{
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
minWidth={100}
|
|
384
|
-
topMargin={topMargin}
|
|
348
|
+
<ScrollView
|
|
349
|
+
style={{ position: "relative", flex: 1 }}
|
|
350
|
+
contentContainerStyle={{ backgroundColor: "black" }}
|
|
351
|
+
maximumZoomScale={5}
|
|
352
|
+
minimumZoomScale={0.5}
|
|
353
|
+
onScroll={this.onHandleScroll}
|
|
354
|
+
bounces={false}
|
|
355
|
+
showsHorizontalScrollIndicator={false}
|
|
356
|
+
showsVerticalScrollIndicator={false}
|
|
357
|
+
ref={(c) => (this.scrollView = c)}
|
|
358
|
+
scrollEventThrottle={16}
|
|
359
|
+
scrollEnabled={false}
|
|
360
|
+
pinchGestureEnabled={false}
|
|
361
|
+
>
|
|
362
|
+
<AutoHeightImage
|
|
363
|
+
style={{ backgroundColor: "black" }}
|
|
364
|
+
source={{ uri }}
|
|
365
|
+
resizeMode={imageRatio >= 1 ? "contain" : "contain"}
|
|
366
|
+
width={width}
|
|
367
|
+
height={originalHeight}
|
|
368
|
+
onLayout={this.calculateMaxSizes}
|
|
385
369
|
/>
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
370
|
+
{!!cropMode && (
|
|
371
|
+
<ImageCropOverlay
|
|
372
|
+
onLayoutChanged={(top, left, width, height) => {
|
|
373
|
+
this.currentSize.width = width;
|
|
374
|
+
this.currentSize.height = height;
|
|
375
|
+
this.currentPos.top = top;
|
|
376
|
+
this.currentPos.left = left;
|
|
377
|
+
}}
|
|
378
|
+
initialWidth={cropWidth}
|
|
379
|
+
initialHeight={cropHeight}
|
|
380
|
+
initialTop={cropInitialTop}
|
|
381
|
+
initialLeft={cropInitialLeft}
|
|
382
|
+
minHeight={100}
|
|
383
|
+
minWidth={100}
|
|
384
|
+
topMargin={topMargin}
|
|
385
|
+
/>
|
|
386
|
+
)}
|
|
387
|
+
</ScrollView>
|
|
388
|
+
</SafeAreaView>
|
|
389
389
|
</View>
|
|
390
390
|
</SafeAreaProvider>
|
|
391
391
|
) : (
|