A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
make input similar to desktop
ammarahm-eda9e96513fa24
diff --git a/apps/mobile/src/components/Input/index.js b/apps/mobile/src/components/Input/index.jsindex 5fda67e23..31be15eab 100644--- a/apps/mobile/src/components/Input/index.js+++ b/apps/mobile/src/components/Input/index.js@@ -8,7 +8,7 @@ import {ERRORS_LIST,validateEmail,validatePass,- validateUsername,+ validateUsername} from '../../services/Validation';import {getElevation} from '../../utils';import {SIZE} from '../../utils/SizeUtils';@@ -41,7 +41,7 @@ const Input = ({returnKeyType,returnKeyLabel,autoCompleteType,- onFocusInput,+ onFocusInput}) => {const [state] = useTracked();const colors = state.colors;@@ -50,7 +50,7 @@ const Input = ({const [secureEntry, setSecureEntry] = useState(true);const [showError, setShowError] = useState(false);const [errorList, setErrorList] = useState({- SHORT_PASS: true,+ SHORT_PASS: true// NO_ABC: true,// NO_CAPS_ABC: true,// NO_NUM: true,@@ -73,7 +73,7 @@ const Input = ({NO_ABC: true,NO_CAPS_ABC: true,NO_NUM: true,- SPECIAL: true,+ SPECIAL: true});return;}@@ -130,14 +130,15 @@ const Input = ({};const style = {- borderBottomWidth: 1,+ borderWidth:1,+ borderRadius:5,borderColor: color,- paddingHorizontal: 0,flexDirection: 'row',justifyContent: 'space-between',- alignItems: 'flex-end',+ alignItems: 'center',flexGrow: 1,height: 50,+ paddingHorizontal:12,};const textStyle = {@@ -147,7 +148,7 @@ const Input = ({paddingVertical: 0,paddingBottom: 2.5,flexGrow: 1,- height: 35,+ height: 50,};return (@@ -158,7 +159,7 @@ const Input = ({height: height,marginBottom: marginBottom,flexGrow: 1,- maxHeight: height,+ maxHeight: height}}><TouchableOpacitydisabled={!loading}@@ -195,7 +196,7 @@ const Input = ({flexDirection: 'row',justifyContent: 'center',height: 35,- alignItems: 'center',+ alignItems: 'center'}}>{secureTextEntry && (<ActionIcon@@ -208,7 +209,7 @@ const Input = ({}}style={{width: 25,- marginLeft: 5,+ marginLeft: 5}}color={secureEntry ? colors.icon : colors.accent}/>@@ -217,14 +218,10 @@ const Input = ({{button && (<ActionIconname={button.icon}- size={SIZE.lg}+ size={SIZE.xl}top={10}bottom={10}onPress={button.onPress}- style={{- width: 25,- marginLeft: 5,- }}color={button.color}/>)}@@ -240,7 +237,7 @@ const Input = ({size={20}style={{width: 25,- marginLeft: 5,+ marginLeft: 5}}color={colors.errorText}/>@@ -256,13 +253,13 @@ const Input = ({paddingHorizontal: 5,borderRadius: 2.5,...getElevation(2),- top: 0,+ top: 0}}><Paragraphsize={SIZE.xs}style={{textAlign: 'right',- textAlignVertical: 'bottom',+ textAlignVertical: 'bottom'}}><Iconname="alert-circle-outline"@@ -279,7 +276,7 @@ const Input = ({{validationType === 'password' && focus && (<Viewstyle={{- paddingTop: 5,+ paddingTop: 5}}>{Object.keys(errorList).filter(k => errorList[k] === true).length !==0 ? (@@ -288,7 +285,7 @@ const Input = ({key={ERRORS_LIST[error]}style={{flexDirection: 'row',- alignItems: 'center',+ alignItems: 'center'}}><Iconname={errorList[error] ? 'close' : 'check'}