* Fix Find channels not being interactable
* fix(e2e): Uncomment find channel tests
* Fix tsc
* Use platform select
---------
(cherry picked from commit f963855875)
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
This commit is contained in:
parent
381c713035
commit
c771b301f6
6 changed files with 14 additions and 11 deletions
|
|
@ -2,7 +2,7 @@
|
|||
// See LICENSE.txt for license information.
|
||||
|
||||
import React from 'react';
|
||||
import {Text, TouchableOpacity, useWindowDimensions} from 'react-native';
|
||||
import {Platform, Text, TouchableOpacity, useWindowDimensions} from 'react-native';
|
||||
import Animated, {FadeIn, FadeOut} from 'react-native-reanimated';
|
||||
|
||||
import CompassIcon from '@components/compass_icon';
|
||||
|
|
@ -103,10 +103,13 @@ export default function BaseChip({
|
|||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
// https://mattermost.atlassian.net/browse/MM-63814?focusedCommentId=178584
|
||||
const useFadeOut = showAnimation && Platform.OS !== 'android';
|
||||
return (
|
||||
<Animated.View
|
||||
entering={showAnimation ? FadeIn.duration(FADE_DURATION) : undefined}
|
||||
exiting={showAnimation ? FadeOut.duration(FADE_DURATION) : undefined}
|
||||
exiting={useFadeOut ? FadeOut.duration(FADE_DURATION) : undefined}
|
||||
style={style.container}
|
||||
testID={testID}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ const SkinToneSelector = ({skinTone = 'default', containerWidth, isSearching, tu
|
|||
>
|
||||
<Animated.View
|
||||
style={widthAnimatedStyle}
|
||||
exiting={FadeOut}
|
||||
exiting={Platform.OS === 'android' ? undefined : FadeOut /* https://mattermost.atlassian.net/browse/MM-63814?focusedCommentId=178584 */}
|
||||
entering={FadeIn}
|
||||
>
|
||||
<Animated.View style={[styles.container, opacityStyle]}>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
import {debounce, type DebouncedFunc} from 'lodash';
|
||||
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
|
||||
import {useIntl} from 'react-intl';
|
||||
import {Alert, FlatList, type ListRenderItemInfo, StyleSheet, View} from 'react-native';
|
||||
import {Alert, FlatList, type ListRenderItemInfo, Platform, StyleSheet, View} from 'react-native';
|
||||
import Animated, {FadeInDown, FadeOutUp} from 'react-native-reanimated';
|
||||
|
||||
import {switchToGlobalThreads} from '@actions/local/thread';
|
||||
|
|
@ -336,7 +336,7 @@ const FilteredList = ({
|
|||
return (
|
||||
<Animated.View
|
||||
entering={FadeInDown.duration(100)}
|
||||
exiting={FadeOutUp.duration(100)}
|
||||
exiting={Platform.select({ios: FadeOutUp.duration(100)}) /* https://mattermost.atlassian.net/browse/MM-63814?focusedCommentId=178584 */}
|
||||
style={style.flex}
|
||||
>
|
||||
<FlatList
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import React, {useCallback} from 'react';
|
||||
import {useIntl} from 'react-intl';
|
||||
import {StyleSheet, View} from 'react-native';
|
||||
import {Platform, StyleSheet, View} from 'react-native';
|
||||
import Animated, {FadeInDown, FadeOutUp} from 'react-native-reanimated';
|
||||
|
||||
import CompassIcon from '@components/compass_icon';
|
||||
|
|
@ -66,7 +66,7 @@ const QuickOptions = ({canCreateChannels, canJoinChannels, close}: Props) => {
|
|||
return (
|
||||
<Animated.View
|
||||
entering={FadeInDown.duration(200)}
|
||||
exiting={FadeOutUp.duration(100)}
|
||||
exiting={Platform.select({ios: FadeOutUp.duration(100)}) /* https://mattermost.atlassian.net/browse/MM-63814?focusedCommentId=178584 */}
|
||||
style={styles.container}
|
||||
>
|
||||
<Animated.View style={styles.wrapper}>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import React, {useCallback, useEffect, useMemo, useState} from 'react';
|
||||
import {useIntl} from 'react-intl';
|
||||
import {SectionList, type SectionListRenderItemInfo, StyleSheet} from 'react-native';
|
||||
import {Platform, SectionList, type SectionListRenderItemInfo, StyleSheet} from 'react-native';
|
||||
import Animated, {FadeInDown, FadeOutUp} from 'react-native-reanimated';
|
||||
|
||||
import {switchToChannelById} from '@actions/remote/channel';
|
||||
|
|
@ -81,7 +81,7 @@ const UnfilteredList = ({close, keyboardOverlap, recentChannels, showTeamName, t
|
|||
return (
|
||||
<Animated.View
|
||||
entering={FadeInDown.duration(200)}
|
||||
exiting={FadeOutUp.duration(100)}
|
||||
exiting={Platform.select({ios: FadeOutUp.duration(100)}) /* https://mattermost.atlassian.net/browse/MM-63814?focusedCommentId=178584 */}
|
||||
style={style.flex}
|
||||
>
|
||||
<SectionList
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
import {useNavigation} from '@react-navigation/native';
|
||||
import React, {useCallback, useMemo} from 'react';
|
||||
import {useIntl} from 'react-intl';
|
||||
import {FlatList, type ListRenderItemInfo, StyleSheet, View} from 'react-native';
|
||||
import {FlatList, type ListRenderItemInfo, Platform, StyleSheet, View} from 'react-native';
|
||||
import Animated, {FadeInDown, FadeOutUp} from 'react-native-reanimated';
|
||||
|
||||
import NoResultsWithTerm from '@components/no_results_with_term';
|
||||
|
|
@ -94,7 +94,7 @@ const SearchChannels = ({
|
|||
return (
|
||||
<Animated.View
|
||||
entering={FadeInDown.duration(100)}
|
||||
exiting={FadeOutUp.duration(100)}
|
||||
exiting={Platform.select({ios: FadeOutUp.duration(100)}) /* https://mattermost.atlassian.net/browse/MM-63814?focusedCommentId=178584 */}
|
||||
style={style.flex}
|
||||
>
|
||||
<FlatList
|
||||
|
|
|
|||
Loading…
Reference in a new issue