File tree Expand file tree Collapse file tree 10 files changed +654
-37
lines changed Expand file tree Collapse file tree 10 files changed +654
-37
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,14 @@ web-build/
15
15
16
16
coverage /
17
17
18
+ # Pasta Android do React Native
19
+ android /
18
20
21
+ # Arquivos gerados pelo Android Studio
22
+ * .iml
23
+ * .gradle
24
+ * .keystore
25
+ build /
26
+
27
+ yarn.lock
19
28
Original file line number Diff line number Diff line change 9
9
"splash" : {
10
10
"image" : " ./assets/splash.png" ,
11
11
"resizeMode" : " contain" ,
12
- "backgroundColor" : " #ffffff "
12
+ "backgroundColor" : " #4B00FA "
13
13
},
14
- "assetBundlePatterns" : [" **/*" ],
14
+ "assetBundlePatterns" : [
15
+ " **/*"
16
+ ],
15
17
"ios" : {
16
18
"supportsTablet" : true ,
17
19
"googleServicesFile" : " ./google-services.json" ,
20
22
"android" : {
21
23
"adaptiveIcon" : {
22
24
"foregroundImage" : " ./assets/adaptive-icon.png" ,
23
- "backgroundColor" : " #ffffff "
25
+ "backgroundColor" : " #4B00FA "
24
26
},
25
27
"googleServicesFile" : " ./google-services.json" ,
26
28
"package" : " com.econominhas.app"
35
37
}
36
38
},
37
39
"owner" : " econominhas" ,
38
- "plugins" : [" @react-native-google-signin/google-signin" ],
40
+ "plugins" : [
41
+ " @react-native-google-signin/google-signin"
42
+ ],
39
43
"updates" : {
40
44
"url" : " https://u.expo.dev/ca980805-e57a-46b9-99c0-71417e7701e4"
41
45
}
42
46
}
43
- }
47
+ }
Original file line number Diff line number Diff line change 4
4
"main" : " node_modules/expo/AppEntry.js" ,
5
5
"scripts" : {
6
6
"start" : " expo start" ,
7
- "android" : " expo start -- android" ,
8
- "ios" : " expo start -- ios" ,
7
+ "android" : " expo run: android" ,
8
+ "ios" : " expo run: ios" ,
9
9
"web" : " expo start --web" ,
10
10
"lint" : " eslint ." ,
11
11
"test" : " jest" ,
12
12
"prepare" : " husky install"
13
13
},
14
14
"dependencies" : {
15
+ "@expo-google-fonts/lato" : " ^0.2.3" ,
15
16
"@react-native-google-signin/google-signin" : " ^10.1.1" ,
16
17
"@react-navigation/native" : " ^6.1.9" ,
17
18
"@react-navigation/native-stack" : " ^6.9.17" ,
18
19
"axios" : " ^1.6.2" ,
19
20
"expo" : " ~49.0.15" ,
20
21
"expo-dev-client" : " ~2.4.12" ,
21
22
"expo-font" : " ~11.4.0" ,
23
+ "expo-splash-screen" : " ~0.20.5" ,
22
24
"expo-status-bar" : " ~1.6.0" ,
23
25
"expo-updates" : " ~0.18.17" ,
24
26
"jest" : " ^29.2.1" ,
Original file line number Diff line number Diff line change @@ -19,11 +19,16 @@ export const ThemeContext = createContext({} as ThemeContextProps);
19
19
20
20
const fonts = {
21
21
family : {
22
- extraBold : 'NunitoSansExtraBold' ,
23
- bold : 'NunitoSansBold' ,
24
- regular : 'NunitoSansRegular' ,
25
- light : 'NunitoSansLight' ,
26
- medium : 'NunitoSansMedium' ,
22
+ extraBold : 'Lato_900Black' ,
23
+ extraBoldItalic : 'Lato_900Black_Italic' ,
24
+ bold : 'Lato_700Bold' ,
25
+ boldItalic : 'Lato_700Bold_Italic' ,
26
+ regular : 'Lato_400Regular' ,
27
+ regularItalic : 'Lato_400Regular_Italic' ,
28
+ light : 'Lato_300Light' ,
29
+ lightItalic : 'Lato_300Light_Italic' ,
30
+ medium : 'Lato_100Thin' ,
31
+ mediumItalic : 'Lato_100Thin_Italic' ,
27
32
} ,
28
33
sizes : {
29
34
title : 32 ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
+ import {
4
+ useFonts ,
5
+ Lato_100Thin ,
6
+ Lato_100Thin_Italic ,
7
+ Lato_300Light ,
8
+ Lato_300Light_Italic ,
9
+ Lato_400Regular ,
10
+ Lato_400Regular_Italic ,
11
+ Lato_700Bold ,
12
+ Lato_700Bold_Italic ,
13
+ Lato_900Black ,
14
+ Lato_900Black_Italic ,
15
+ } from '@expo-google-fonts/lato' ;
3
16
import { NavigationContainer } from '@react-navigation/native' ;
4
- import { useFonts } from 'expo-font' ;
5
17
import { StatusBar } from 'expo-status-bar' ;
6
18
import { SafeAreaView } from 'react-native-safe-area-context' ;
7
19
import { ThemeProvider } from 'styled-components' ;
@@ -13,11 +25,16 @@ import { MainNavigator } from './navigation';
13
25
function App ( ) {
14
26
const { palette, darkMode } = useCustomTheme ( ) ;
15
27
const [ fontsLoaded ] = useFonts ( {
16
- NunitoSansLight : require ( '../assets/fonts/NunitoSansLight.ttf' ) ,
17
- NunitoSansBold : require ( '../assets/fonts/NunitoSansBold.ttf' ) ,
18
- NunitoSansExtraBold : require ( '../assets/fonts/NunitoSansExtraBold.ttf' ) ,
19
- NunitoSansMedium : require ( '../assets/fonts/NunitoSansMedium.ttf' ) ,
20
- NunitoSansRegular : require ( '../assets/fonts/NunitoSansRegular.ttf' ) ,
28
+ Lato_100Thin,
29
+ Lato_100Thin_Italic,
30
+ Lato_300Light,
31
+ Lato_300Light_Italic,
32
+ Lato_400Regular,
33
+ Lato_400Regular_Italic,
34
+ Lato_700Bold,
35
+ Lato_700Bold_Italic,
36
+ Lato_900Black,
37
+ Lato_900Black_Italic,
21
38
} ) ;
22
39
23
40
if ( ! fontsLoaded ) {
You can’t perform that action at this time.
0 commit comments