Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode VERSIONCODE as Integer
versionName "4.71.1"
versionName "4.71.2"
vectorDrawables.useSupportLibrary = true
manifestPlaceholders = [BugsnagAPIKey: BugsnagAPIKey as String]
resValue "string", "rn_config_reader_custom_package", "chat.rocket.reactnative"
Expand Down
5 changes: 3 additions & 2 deletions app/containers/TwoFactor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import useDeepCompareEffect from 'use-deep-compare-effect';
import { useForm } from 'react-hook-form';
import * as yup from 'yup';
import { yupResolver } from '@hookform/resolvers/yup';
import { GestureHandlerRootView } from 'react-native-gesture-handler';

import { ControlledFormTextInput } from '../TextInput';
import I18n from '../../i18n';
Expand Down Expand Up @@ -157,7 +158,7 @@ const TwoFactor = React.memo(() => {
useNativeDriver
isVisible={visible}
hideModalContentWhileAnimating>
<View style={styles.container} testID='two-factor'>
<GestureHandlerRootView style={styles.container} testID='two-factor'>
<View
style={[
styles.content,
Expand Down Expand Up @@ -198,7 +199,7 @@ const TwoFactor = React.memo(() => {
</View>
</View>
<Toast />
</View>
</GestureHandlerRootView>
</Modal>
);
});
Expand Down
20 changes: 14 additions & 6 deletions app/views/ChangePasscodeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { StyleSheet } from 'react-native';
import useDeepCompareEffect from 'use-deep-compare-effect';
import isEmpty from 'lodash/isEmpty';
import Modal from 'react-native-modal';
import { GestureHandlerRootView } from 'react-native-gesture-handler';

import { hasNotch } from '../lib/methods/helpers';
import { PasscodeChoose } from '../containers/Passcode';
Expand All @@ -12,6 +13,11 @@ import { CHANGE_PASSCODE_EMITTER } from '../lib/constants/localAuthentication';
import Touch from '../containers/Touch';

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},
modal: {
margin: 0
},
Expand Down Expand Up @@ -69,12 +75,14 @@ const ChangePasscodeView = React.memo(() => {

return (
<Modal useNativeDriver isVisible={visible} hideModalContentWhileAnimating style={styles.modal}>
<PasscodeChoose finishProcess={onSubmit} force={data?.force} />
{!data?.force ? (
<Touch onPress={onCancel} style={styles.close}>
<CustomIcon name='close' size={30} />
</Touch>
) : null}
<GestureHandlerRootView style={styles.container}>
<PasscodeChoose finishProcess={onSubmit} force={data?.force} />
{!data?.force ? (
<Touch onPress={onCancel} style={styles.close}>
<CustomIcon name='close' size={30} />
</Touch>
) : null}
</GestureHandlerRootView>
</Modal>
);
});
Expand Down
5 changes: 3 additions & 2 deletions app/views/JitsiMeetView/JitsiAuthModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useNavigation } from '@react-navigation/native';
import React from 'react';
import { Linking, StyleSheet, Text, View } from 'react-native';
import Modal from 'react-native-modal';
import { GestureHandlerRootView } from 'react-native-gesture-handler';

import sharedStyles from '../Styles';
import Button from '../../containers/Button';
Expand Down Expand Up @@ -48,7 +49,7 @@ const JitsiAuthModal = ({

return (
<Modal isVisible>
<View style={[styles.container, { backgroundColor: colors.surfaceRoom }]}>
<GestureHandlerRootView style={[styles.container, { backgroundColor: colors.surfaceRoom }]}>
<Text style={[styles.title, { color: colors.fontTitlesLabels }]}>{i18n.t('Jitsi_may_require_authentication')}</Text>
{isAdmin ? (
<Text style={[styles.regular, { color: colors.fontTitlesLabels }]}>
Expand All @@ -75,7 +76,7 @@ const JitsiAuthModal = ({
}}
/>
</View>
</View>
</GestureHandlerRootView>
</Modal>
);
};
Expand Down
8 changes: 4 additions & 4 deletions app/views/RoomView/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import { Text, View } from 'react-native';
import { BorderlessButton, ScrollView } from 'react-native-gesture-handler';
import { Text } from 'react-native';
import { BorderlessButton, GestureHandlerRootView, ScrollView } from 'react-native-gesture-handler';
import Modal from 'react-native-modal';

import Markdown, { MarkdownPreview } from '../../containers/markdown';
Expand Down Expand Up @@ -42,12 +42,12 @@ const Banner = React.memo(
isVisible={showModal}
animationIn='fadeIn'
animationOut='fadeOut'>
<View style={[styles.modalView, { backgroundColor: themes[theme].surfaceNeutral }]}>
<GestureHandlerRootView style={[styles.modalView, { backgroundColor: themes[theme].surfaceNeutral }]}>
<Text style={[styles.bannerModalTitle, { color: themes[theme].fontSecondaryInfo }]}>{title}</Text>
<ScrollView style={styles.modalScrollView}>
<Markdown msg={text} />
</ScrollView>
</View>
</GestureHandlerRootView>
</Modal>
</>
);
Expand Down
20 changes: 14 additions & 6 deletions app/views/ScreenLockedView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useEffect, useState } from 'react';
import { StyleSheet } from 'react-native';
import Modal from 'react-native-modal';
import useDeepCompareEffect from 'use-deep-compare-effect';
import { GestureHandlerRootView } from 'react-native-gesture-handler';

import { PasscodeEnter } from '../containers/Passcode';
import { LOCAL_AUTHENTICATE_EMITTER } from '../lib/constants/localAuthentication';
Expand All @@ -19,6 +20,11 @@ interface IData {
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},
close: {
position: 'absolute',
top: hasNotch ? 50 : 30,
Expand Down Expand Up @@ -73,12 +79,14 @@ const ScreenLockedView = (): JSX.Element => {
style={{ margin: 0 }}
animationIn='fadeIn'
animationOut='fadeOut'>
<PasscodeEnter hasBiometry={!!data?.hasBiometry} finishProcess={onSubmit} />
{data?.force ? (
<Touch onPress={onCancel} style={styles.close}>
<CustomIcon name='close' size={30} />
</Touch>
) : null}
<GestureHandlerRootView style={styles.container}>
<PasscodeEnter hasBiometry={!!data?.hasBiometry} finishProcess={onSubmit} />
{data?.force ? (
<Touch onPress={onCancel} style={styles.close}>
<CustomIcon name='close' size={30} />
</Touch>
) : null}
</GestureHandlerRootView>
</Modal>
);
};
Expand Down
4 changes: 2 additions & 2 deletions ios/RocketChatRN.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3007,7 +3007,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 4.71.1;
MARKETING_VERSION = 4.71.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
Expand Down Expand Up @@ -3059,7 +3059,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 4.71.1;
MARKETING_VERSION = 4.71.2;
MTL_FAST_MATH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = chat.rocket.reactnative.NotificationService;
Expand Down
2 changes: 1 addition & 1 deletion ios/RocketChatRN/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.71.1</string>
<string>4.71.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/ShareRocketChatRN/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>4.71.1</string>
<string>4.71.2</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>KeychainGroup</key>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rocket-chat-reactnative",
"version": "4.71.1",
"version": "4.71.2",
"private": true,
"packageManager": "yarn@1.22.22",
"scripts": {
Expand Down
Loading