File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
- interface ISource {
2
- source : string | { uri : string } ;
3
- }
4
-
5
- export { ISource } ;
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import DetailScreen from "@screens/detail/DetailScreen";
17
17
const Tab = createBottomTabNavigator ( ) ;
18
18
const Stack = createStackNavigator ( ) ;
19
19
20
- const Navigation = ( props : any ) => {
21
- React . useEffect ( ( ) => {
20
+ const Navigation = ( ) => {
21
+ React . useEffect ( ( ) : any => {
22
22
return ( ) => ( isReadyRef . current = false ) ;
23
23
} , [ ] ) ;
24
24
@@ -28,13 +28,11 @@ const Navigation = (props: any) => {
28
28
screenOptions = { ( { route } ) => ( {
29
29
tabBarIcon : ( { focused, color, size } ) => {
30
30
let iconName : string = "" ;
31
-
32
31
if ( route . name === SCREENS . HOME ) {
33
32
iconName = focused ? "ios-heart" : "heart-outline" ;
34
33
} else if ( route . name === SCREENS . SEARCH ) {
35
34
iconName = focused ? "ios-search" : "ios-search" ;
36
35
}
37
-
38
36
// You can return any component that you like here!
39
37
return (
40
38
< Icon name = { iconName } type = "Ionicons" size = { size } color = { color } />
Original file line number Diff line number Diff line change 30
30
"paths" : {
31
31
"@shared-components/*" : [" ./shared/components/*" ],
32
32
"@shared-constants" : [" ./shared/constants" ],
33
- "@shared-theme" : [" ./shared/theme" ],
34
33
"@font-size" : [" ./shared/theme/font-size" ],
35
34
"@api" : [" ./services/api/index" ],
36
35
"@fonts" : [" ./shared/theme/fonts/index" ],
37
36
"@colors" : [" ./shared/theme/colors" ],
38
- "@theme" : [" ./shared/theme/index " ],
39
- "@services" : [" ./services" ],
40
- "@screens" : [" ./screens" ],
37
+ "@theme" : [" ./shared/theme/* " ],
38
+ "@services/* " : [" ./services/* " ],
39
+ "@screens/* " : [" ./screens/* " ],
41
40
"@utils" : [" ./utils/" ],
42
41
"@assets" : [" ./assets/" ]
43
42
}
You can’t perform that action at this time.
0 commit comments