From 8e2eae49b4f1758e83cb181b23009575974d764e Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Mon, 7 Feb 2022 20:33:05 -0500 Subject: [PATCH] [Releases] v0.6.0-rc2 b (#775) * Send: make sure destination field doesn't autocorrect (#771) * Wallet: modify style of Tor restart button (#772) * Lockscreen enhancements (#773) * Give autofocus to password field * Put field in upper half of screen to not get cut off by keyboards * Update lockscreen colors to match main theme * Lockscreen: use TextInput component * Nodes: refresh list after adding/delete node (#776) * Nodes: refresh when passed new props * Nodes: refactor node list fetching logic * Take user back to nodes list after deleting node * Enforce modal warning text color (#778) * iOS Version Bump: v0.6.0-rc2 (b) (#779) --- components/TextInput.tsx | 5 +++- ios/zeus.xcodeproj/project.pbxproj | 4 +-- views/Lockscreen.tsx | 11 ++++++--- views/Send.tsx | 1 + views/Settings/AddEditNode.tsx | 30 +++++++++++++++++------ views/Settings/Nodes.tsx | 39 ++++++++++++++---------------- views/Wallet/Wallet.tsx | 8 ++---- 7 files changed, 57 insertions(+), 41 deletions(-) diff --git a/components/TextInput.tsx b/components/TextInput.tsx index 724fb7d20..6f84dec5a 100644 --- a/components/TextInput.tsx +++ b/components/TextInput.tsx @@ -14,6 +14,7 @@ interface TextInputProps { autoCapitalize?: string; autoCorrect?: boolean; multiline?: boolean; + autoFocus?: boolean; } function TextInput(props: TextInputProps) { @@ -28,7 +29,8 @@ function TextInput(props: TextInputProps) { keyboardType, autoCapitalize, autoCorrect, - multiline + multiline, + autoFocus } = props; const defaultStyle = numberOfLines @@ -73,6 +75,7 @@ function TextInput(props: TextInputProps) { autoCapitalize={autoCapitalize} autoCorrect={autoCorrect} multiline={multiline} + autoFocus={autoFocus} /> ); } diff --git a/ios/zeus.xcodeproj/project.pbxproj b/ios/zeus.xcodeproj/project.pbxproj index 222929dc1..bf79152fd 100644 --- a/ios/zeus.xcodeproj/project.pbxproj +++ b/ios/zeus.xcodeproj/project.pbxproj @@ -1360,7 +1360,7 @@ CODE_SIGN_ENTITLEMENTS = zeus/zeus.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = 7222UU8F2H; ENABLE_BITCODE = NO; @@ -1399,7 +1399,7 @@ CODE_SIGN_ENTITLEMENTS = zeus/zeusRelease.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEVELOPMENT_TEAM = ""; ENABLE_BITCODE = NO; HEADER_SEARCH_PATHS = ( diff --git a/views/Lockscreen.tsx b/views/Lockscreen.tsx index 4abb6c11a..e49399323 100644 --- a/views/Lockscreen.tsx +++ b/views/Lockscreen.tsx @@ -1,8 +1,11 @@ import * as React from 'react'; -import { ScrollView, StyleSheet, Text, TextInput, View } from 'react-native'; +import { ScrollView, StyleSheet, Text, View } from 'react-native'; import { inject, observer } from 'mobx-react'; + import Button from './../components/Button'; import { ErrorMessage } from './../components/SuccessErrorMessage'; +import TextInput from './../components/TextInput'; + import LinkingUtils from './../utils/LinkingUtils'; import { localeString } from './../utils/LocaleUtils'; @@ -91,7 +94,7 @@ export default class Lockscreen extends React.Component< )} /> )} - + {localeString('views.Lockscreen.passphrase')}