From 607b3cc19468d8b8e00ee7263adb75f8f152467e Mon Sep 17 00:00:00 2001 From: Justin Shillingford Date: Fri, 26 Jun 2020 13:25:06 -0400 Subject: Added styling and security to keyboards --- App.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'App.tsx') diff --git a/App.tsx b/App.tsx index 2ed7d496..037a1390 100644 --- a/App.tsx +++ b/App.tsx @@ -8,7 +8,7 @@ * @format */ -import React from 'react'; +import React, { useRef } from 'react'; import { SafeAreaView, StyleSheet, @@ -36,6 +36,9 @@ import LinearGradient from 'react-native-linear-gradient'; declare const global: {HermesInternal: null | {}}; const App = () => { + + const passwordInput = useRef(); + return ( <> @@ -48,11 +51,22 @@ const App = () => { style={styles.credentials} placeholder="Username" placeholderTextColor='#FFFFFF' + returnKeyType='next' + onSubmitEditing={() => {passwordInput.current.focus()}} + blurOnSubmit={false} + autoCompleteType='username' + textContentType='username' + keyboardType='ascii-capable' />