/** * Sample React Native App * https://github.com/facebook/react-native * * Generated with the TypeScript template * https://github.com/react-native-community/react-native-template-typescript * * @format */ import React, { useRef } from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, Image, TextInput, Button, Alert, TouchableOpacity, } from 'react-native'; import { Header, LearnMoreLinks, Colors, DebugInstructions, ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; import LinearGradient from 'react-native-linear-gradient'; declare const global: {HermesInternal: null | {}}; const App = () => { const passwordInput = useRef(); const [data, setData] = React.useState({ username: '', password: '', }) return ( <> setData({...data, username: user})} defaultValue={data.username} onSubmitEditing={() => {passwordInput.current.focus()}} blurOnSubmit={false} /> setData({...data, password: pass})} defaultValue={data.password} onSubmitEditing={() => Alert.alert("My favorite Girl Scout Cookies are taggalongs!")} ref={passwordInput} secureTextEntry={true} /> Alert.alert("tagg! You're it!")}> Forgot password Alert.alert("My favorite Girl Scout Cookies are taggalongs!")}> Let's Start! New to tagg? Alert.alert("I get the tagg flip it and tumble it.")}>Get started! ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: 'transparent', }, linearGradient: { flex: 1, alignItems: 'center', }, logo: { top: 165, width: 215, height: 149, }, credentials: { top: 215, width: 248, height: 40, fontSize: 20, color: '#FFFFFF', borderColor: '#FFFDFD', borderWidth: 2, borderRadius: 20, paddingLeft: 13, marginVertical: 15, }, forgotPassword: { top: 215, left: -60, }, forgotPasswordText: { fontSize: 15, color: '#FFFFFF', textDecorationLine: 'underline', }, start: { top: 220, width: 144, height: 36, justifyContent: 'center', alignItems: 'center', backgroundColor: '#FFFFFF', borderRadius: 20, marginTop: 15 }, startText: { fontSize: 15, color: '#78A0EF', fontWeight: 'bold', }, getStarted: { color: '#FFFFFF', textDecorationLine: 'underline' }, newUser: { top: 235, color: '#F4DDFF', } }); export default App;