File tree 2 files changed +19
-19
lines changed
2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -10,29 +10,29 @@ const styles = StyleSheet.create({
10
10
} ,
11
11
} ) ;
12
12
13
- const showApiCalls = ( ) => {
14
- const baseUrl = 'http://www.mocky.io/' ;
15
- global . _fetch = fetch ;
16
- global . fetch = async ( uri , options , ...args ) => {
17
- const response = await global . _fetch ( uri , options , ...args ) ;
18
- if ( uri . includes ( baseUrl ) ) {
19
- console . log (
20
- '🔵 API Call: ' ,
21
- uri ,
22
- { request : { uri } , response } ,
23
- ) ;
24
- }
25
- return response ;
26
- } ;
27
- } ;
13
+ // const showApiCalls = () => {
14
+ // const baseUrl = 'http://www.mocky.io/';
15
+ // global._fetch = fetch;
16
+ // global.fetch = async (uri, options, ...args) => {
17
+ // const response = await global._fetch(uri, options, ...args);
18
+ // if (uri.includes(baseUrl)) {
19
+ // console.log(
20
+ // '🔵 API Call: ',
21
+ // uri,
22
+ // { request: { uri }, response },
23
+ // );
24
+ // }
25
+ // return response;
26
+ // };
27
+ // };
28
28
29
29
class App extends React . Component {
30
30
constructor ( props ) {
31
31
super ( props ) ;
32
32
33
33
if ( __DEV__ ) {
34
34
console . disableYellowBox = true ;
35
- showApiCalls ( ) ;
35
+ // showApiCalls();
36
36
}
37
37
}
38
38
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ export default createBottomTabNavigator(
16
16
} ,
17
17
{
18
18
navigationOptions : ( { navigation } ) => ( {
19
- tabBarIcon : ( { focused , tintColor } ) => {
19
+ tabBarIcon : ( { tintColor } ) => {
20
20
const { routeName } = navigation . state ;
21
21
let iconName ;
22
22
if ( routeName === 'Home' ) {
23
- iconName = ` ios-home${ focused ? '' : '-outline' } ` ;
23
+ iconName = ' ios-home' ;
24
24
} else if ( routeName === 'Profile' ) {
25
- iconName = ` ios-contact ${ focused ? '' : '-outline' } ` ;
25
+ iconName = ' ios-person' ;
26
26
}
27
27
28
28
return < Ionicons name = { iconName } size = { 24 } color = { tintColor } /> ;
You can’t perform that action at this time.
0 commit comments