Skip to content

Commit

Permalink
fix: new experimental chats modal fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Feb 10, 2025
1 parent c6ad4e3 commit 3787782
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 27 deletions.
6 changes: 3 additions & 3 deletions components/History/components/ValueTransferLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const ValueTransferLine: React.FunctionComponent<ValueTransferLineProps> = ({
setMessagesAddress(Utils.isMessagesAddress(vt));
}, [vt]);

/*
const handleRenderRightActions = (
progress: Animated.AnimatedInterpolation<number>,
dragX: Animated.AnimatedInterpolation<number>,
Expand Down Expand Up @@ -170,6 +171,7 @@ const ValueTransferLine: React.FunctionComponent<ValueTransferLineProps> = ({
</>
);
};
*/

const handleRenderLeftActions = (
progress: Animated.AnimatedInterpolation<number>,
Expand Down Expand Up @@ -277,10 +279,8 @@ const ValueTransferLine: React.FunctionComponent<ValueTransferLineProps> = ({
<Swipeable
ref={swipeableRef}
overshootLeft={false}
overshootRight={messagesAddress ? true : false}
rightThreshold={65}
overshootRight={false}
overshootFriction={1}
renderRightActions={handleRenderRightActions}
renderLeftActions={handleRenderLeftActions}>
<View
style={{
Expand Down
35 changes: 13 additions & 22 deletions components/Messages/MessagesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,19 @@ const MessagesModal: React.FunctionComponent<MessagesModalProps> = ({
moment.locale(language);

return (
<SafeAreaView
style={{
display: 'flex',
justifyContent: 'flex-start',
alignItems: 'stretch',
height: '100%',
backgroundColor: colors.background,
}}>
<ContactList
syncingStatusMoreInfoOnClick={syncingStatusMoreInfoOnClick}
setPrivacyOption={setPrivacyOption}
setUfvkViewModalVisible={setUfvkViewModalVisible}
setScrollToTop={setScrollToTop}
scrollToTop={scrollToTop}
setScrollToBottom={setScrollToBottom}
scrollToBottom={scrollToBottom}
sendTransaction={sendTransaction}
setServerOption={setServerOption}
closeModal={closeModal}
noDrawMenu={true}
/>
</SafeAreaView>
<ContactList
syncingStatusMoreInfoOnClick={syncingStatusMoreInfoOnClick}
setPrivacyOption={setPrivacyOption}
setUfvkViewModalVisible={setUfvkViewModalVisible}
setScrollToTop={setScrollToTop}
scrollToTop={scrollToTop}
setScrollToBottom={setScrollToBottom}
scrollToBottom={scrollToBottom}
sendTransaction={sendTransaction}
setServerOption={setServerOption}
closeModal={closeModal}
noDrawMenu={true}
/>
);
};

Expand Down
6 changes: 4 additions & 2 deletions components/Messages/components/ContactList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
TouchableOpacity,
ActivityIndicator,
TextInput,
SafeAreaView,
} from 'react-native';
import moment from 'moment';
import 'moment/locale/es';
Expand Down Expand Up @@ -276,14 +277,15 @@ const ContactList: React.FunctionComponent<ContactListProps> = ({
//console.log('search text:', searchText, 'field:', searchTextField);

return (
<View
<SafeAreaView
accessible={true}
accessibilityLabel={translate('history.title-acc') as string}
style={{
display: 'flex',
justifyContent: 'flex-start',
width: '100%',
height: '100%',
backgroundColor: colors.background,
}}>
{isMessagesAddressModalShowing && (
<Modal
Expand Down Expand Up @@ -620,7 +622,7 @@ const ContactList: React.FunctionComponent<ContactListProps> = ({
)}
</>
)}
</View>
</SafeAreaView>
);
};

Expand Down

0 comments on commit 3787782

Please sign in to comment.