Skip to content

Commit

Permalink
fix(messenger): android crash multiple blur view
Browse files Browse the repository at this point in the history
Signed-off-by: clegirar <clemntgirard@gmail.com>
  • Loading branch information
clegirar committed Apr 15, 2021
1 parent ae18bb9 commit 85e4e0b
Show file tree
Hide file tree
Showing 14 changed files with 375 additions and 323 deletions.
7 changes: 5 additions & 2 deletions js/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion js/packages/components/chat/MultiMember.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from 'react'
import { TouchableOpacity, View, Platform } from 'react-native'
import { Text, Icon } from '@ui-kitten/components'
import { BlurView } from '@react-native-community/blur'
import { CommonActions } from '@react-navigation/native'
import { useTranslation } from 'react-i18next'
import EmojiBoard from 'react-native-emoji-board'
Expand All @@ -18,7 +19,6 @@ import {
import beapi from '@berty-tech/api'

import { ChatFooter, ChatDate } from './common'
import BlurView from '../shared-components/BlurView'
import { SwipeNavRecognizer } from '../shared-components/SwipeNavRecognizer'
import { useLayout } from '../hooks'
import { MultiMemberAvatar } from '../avatars'
Expand Down Expand Up @@ -46,6 +46,7 @@ const HeaderMultiMember: React.FC<{
return (
<View style={{ position: 'absolute', top: 0, left: 0, right: 0 }} onLayout={onLayoutHeader}>
<BlurView
overlayColor=''
blurType='light'
blurAmount={30}
style={{ position: 'absolute', bottom: 0, top: 0, left: 0, right: 0 }}
Expand Down
3 changes: 2 additions & 1 deletion js/packages/components/chat/OneToOne.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react'
import { ActivityIndicator, Platform, StyleSheet, TouchableOpacity, View } from 'react-native'
import { BlurView } from '@react-native-community/blur'
import { Icon, Text } from '@ui-kitten/components'
import { CommonActions } from '@react-navigation/native'
import { useTranslation } from 'react-i18next'
Expand All @@ -18,7 +19,6 @@ import {
useNotificationsInhibitor,
} from '@berty-tech/store/hooks'

import BlurView from '../shared-components/BlurView'
import { ContactAvatar } from '../avatars'
import { useLayout } from '../hooks'
import { ChatDate, ChatFooter } from './common'
Expand Down Expand Up @@ -62,6 +62,7 @@ export const ChatHeader: React.FC<{ convPk: any; stickyDate: any; showStickyDate
return (
<View style={{ position: 'absolute', top: 0, left: 0, right: 0 }} onLayout={onLayoutHeader}>
<BlurView
overlayColor=''
blurType='light'
blurAmount={30}
style={{ position: 'absolute', bottom: 0, top: 0, left: 0, right: 0 }}
Expand Down
Loading

0 comments on commit 85e4e0b

Please sign in to comment.