-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge 4.46.0 into master (#5511)
- Loading branch information
Showing
39 changed files
with
295 additions
and
210 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
__tests__/containers/message/__snapshots__/Message.stories.storyshot
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 4 additions & 11 deletions
15
...essage/Components/BlurComponent/index.tsx → ...age/Components/OverlayComponent/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,30 @@ | ||
import React from 'react'; | ||
import { StyleProp, View, ViewStyle } from 'react-native'; | ||
import { BlurView } from '@react-native-community/blur'; | ||
|
||
import styles from '../../styles'; | ||
import { useTheme } from '../../../../theme'; | ||
import RCActivityIndicator from '../../../ActivityIndicator'; | ||
import { CustomIcon, TIconsName } from '../../../CustomIcon'; | ||
|
||
const BlurComponent = ({ | ||
const OverlayComponent = ({ | ||
loading = false, | ||
style = {}, | ||
iconName, | ||
showOverlay = false | ||
iconName | ||
}: { | ||
loading: boolean; | ||
style: StyleProp<ViewStyle>; | ||
iconName: TIconsName; | ||
showOverlay?: boolean; | ||
}) => { | ||
const { colors } = useTheme(); | ||
|
||
return ( | ||
<> | ||
{!showOverlay ? ( | ||
<BlurView style={[style, styles.blurView]} blurType={'dark'} blurAmount={2} /> | ||
) : ( | ||
<View style={[style, styles.blurView, { backgroundColor: colors.overlayColor }]} /> | ||
)} | ||
<View style={[style, styles.blurView, { backgroundColor: colors.overlayColor }]} /> | ||
<View style={[style, styles.blurIndicator]}> | ||
{loading ? <RCActivityIndicator size={54} /> : <CustomIcon color={colors.buttonText} name={iconName} size={54} />} | ||
</View> | ||
</> | ||
); | ||
}; | ||
|
||
export default BlurComponent; | ||
export default OverlayComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.