Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/components/AvatarCropModal/AvatarCropModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,11 @@ function AvatarCropModal({imageUri = '', imageName = '', imageType = '', onClose
onBackButtonPress={onClose}
/>
<Text style={[styles.mh5]}>{translate('avatarCropModal.description')}</Text>
<View
style={[styles.flex1, styles.m5, styles.alignSelfStretch]}
onLayout={initializeImageContainer}
>
<GestureHandlerRootView style={[styles.flex1, styles.alignItemsCenter]}>
<GestureHandlerRootView style={[styles.flex1]}>
<View
style={[styles.flex1, styles.m5, styles.alignSelfStretch, styles.alignItemsCenter]}
onLayout={initializeImageContainer}
>
{/* To avoid layout shift we should hide this component until the image container & image is initialized */}
{!isImageInitialized || !isImageContainerInitialized ? (
<ActivityIndicator
Expand Down Expand Up @@ -450,8 +450,8 @@ function AvatarCropModal({imageUri = '', imageName = '', imageType = '', onClose
</View>
</>
)}
</GestureHandlerRootView>
</View>
</View>
</GestureHandlerRootView>
<Button
success
style={[styles.m5]}
Expand Down
Loading