From af66569940e60269fafe8a28ebfc563466c73d5f Mon Sep 17 00:00:00 2001 From: Ramon Candel Date: Tue, 24 Dec 2024 15:23:51 +0100 Subject: [PATCH 1/3] Disabled custom android cursor --- src/components/AppTextInput/index.tsx | 3 ++- src/components/CodeInput/index.tsx | 1 + src/screens/SignInScreen/index.tsx | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/AppTextInput/index.tsx b/src/components/AppTextInput/index.tsx index e883cbb77..2b162bb77 100644 --- a/src/components/AppTextInput/index.tsx +++ b/src/components/AppTextInput/index.tsx @@ -22,6 +22,7 @@ export interface AppTextInputProps extends TextInputProps { label?: string; renderAppend?: ({ isFocused }: { isFocused: boolean }) => JSX.Element | undefined; inputRef?: React.LegacyRef; + disableCustomAndroidCursor?: boolean; } const AppTextInput = (props: AppTextInputProps): JSX.Element => { @@ -110,7 +111,7 @@ const AppTextInput = (props: AppTextInputProps): JSX.Element => { const inputProps = { ...props, ref: props.inputRef || localInputRef, - onChangeText: isAndroid ? handleChangeText : props.onChangeText, + onChangeText: isAndroid && !props.disableCustomAndroidCursor ? handleChangeText : props.onChangeText, onSelectionChange: isAndroid ? handleSelectionChange : props.onSelectionChange, selection: isAndroid ? selection : props.selection, }; diff --git a/src/components/CodeInput/index.tsx b/src/components/CodeInput/index.tsx index 7760e1d4d..a68f07afe 100644 --- a/src/components/CodeInput/index.tsx +++ b/src/components/CodeInput/index.tsx @@ -52,6 +52,7 @@ const CodeInput = (props: CodeInputProps) => { onChangeText={onDigitChangeText} onKeyPress={onDigitKeyPressed} keyboardType="numeric" + disableCustomAndroidCursor /> ); }); diff --git a/src/screens/SignInScreen/index.tsx b/src/screens/SignInScreen/index.tsx index 4232abf3d..8f9fcee63 100644 --- a/src/screens/SignInScreen/index.tsx +++ b/src/screens/SignInScreen/index.tsx @@ -1,5 +1,5 @@ import { Eye, EyeSlash, WarningCircle } from 'phosphor-react-native'; -import React, { useEffect, useRef, useState } from 'react'; +import { useEffect, useRef, useState } from 'react'; import { Animated, TextInput, View } from 'react-native'; import { useKeyboard } from '@internxt-mobile/hooks/useKeyboard'; @@ -212,6 +212,7 @@ function SignInScreen({ navigation }: RootStackScreenProps<'SignIn'>): JSX.Eleme keyboardType="decimal-pad" status={failed2FA ? ['error', renderErrorMessage()] : undefined} onChangeText={setTwoFactorCode} + disableCustomAndroidCursor /> From bfd288c7431aeba2204e804b7c6db8644d2747bf Mon Sep 17 00:00:00 2001 From: Ramon Candel Date: Tue, 24 Dec 2024 16:02:00 +0100 Subject: [PATCH 2/3] Bumped android gradle version --- android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index fc9e0cd28..a841cbc27 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -88,8 +88,8 @@ android { applicationId 'com.internxt.cloud' minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 99 - versionName "1.6.0" + versionCode 100 + versionName "1.6.1" buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString()) } From f81751d49d6052d2eb10fb7d0182a2c902c94688 Mon Sep 17 00:00:00 2001 From: Ramon Candel Date: Tue, 24 Dec 2024 16:12:55 +0100 Subject: [PATCH 3/3] Bump package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b8ad0e610..3d3562abf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "drive-mobile", - "version": "v1.6.0", + "version": "v1.6.1", "private": true, "license": "GNU", "scripts": {