Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
adicionada a logo na tela de auth (#208)
Browse files Browse the repository at this point in the history
adicionada a logo na tela de auth
  • Loading branch information
netochaves authored Jun 18, 2019
2 parents 1ab1273 + 2e1bfb3 commit 4b86059
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions src/Screens/Auth/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import {
YellowBox,
TouchableOpacity,
BackHandler,
PermissionsAndroid
PermissionsAndroid,
Image,
Dimensions
} from "react-native"
import LinearGradient from "react-native-linear-gradient"
import firebase from "react-native-firebase"
Expand All @@ -20,6 +22,7 @@ import AsyncStorage from "@react-native-community/async-storage"
import Contacts from "react-native-contacts"
import countryList from "../../assets/country_dials/dials"
import { scale } from "~/Components/responsive"
import unichatIcon from "../../assets/imgs/unichat-icon.png"

YellowBox.ignoreWarnings([
"Warning: componentWillMount is deprecated",
Expand Down Expand Up @@ -198,7 +201,9 @@ export default class Auth extends Component {
return (
<View style={styles.container}>
<View>
<Text style={styles.textBig}>Insira seu número de telefone</Text>
<View style={styles.logo}>
<Image style={styles.icon} source={unichatIcon} />
</View>
<Text style={styles.textSmall}>
Digite o número do seu telefone junto com o DDD
</Text>
Expand Down Expand Up @@ -254,6 +259,7 @@ export default class Auth extends Component {
}
}

const largura = Dimensions.get("window").width
const styles = StyleSheet.create({
container: {
flex: 1,
Expand All @@ -262,19 +268,12 @@ const styles = StyleSheet.create({
marginTop: 10,
padding: 5
},
textBig: {
alignSelf: "center",
fontSize: scale(24),
color: "black",
fontWeight: "bold",
marginTop: 10,
marginBottom: 20
},
textSmall: {
alignSelf: "center",
fontSize: scale(12),
fontSize: scale(14),
color: "gray",
marginBottom: 20
marginBottom: 20,
textAlign: "center"
},
textEnd: {
alignSelf: "center",
Expand All @@ -291,6 +290,15 @@ const styles = StyleSheet.create({
textInputView: {
flexDirection: "row"
},
icon: {
width: largura / 2.5,
height: largura / 2.5
},
logo: {
alignItems: "center",
justifyContent: "center",
marginBottom: 20
},
countryTextInput: {
fontSize: scale(16),
width: 50,
Expand Down

0 comments on commit 4b86059

Please sign in to comment.