Skip to content

Commit 2d054f3

Browse files
author
Kashish Grover
committed
fix stuff
1 parent 48690d5 commit 2d054f3

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

App.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@ const styles = StyleSheet.create({
1010
},
1111
});
1212

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+
// };
2828

2929
class App extends React.Component {
3030
constructor(props) {
3131
super(props);
3232

3333
if (__DEV__) {
3434
console.disableYellowBox = true;
35-
showApiCalls();
35+
// showApiCalls();
3636
}
3737
}
3838

navigation/DrawerNavigation.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export default createBottomTabNavigator(
1616
},
1717
{
1818
navigationOptions: ({ navigation }) => ({
19-
tabBarIcon: ({ focused, tintColor }) => {
19+
tabBarIcon: ({ tintColor }) => {
2020
const { routeName } = navigation.state;
2121
let iconName;
2222
if (routeName === 'Home') {
23-
iconName = `ios-home${focused ? '' : '-outline'}`;
23+
iconName = 'ios-home';
2424
} else if (routeName === 'Profile') {
25-
iconName = `ios-contact${focused ? '' : '-outline'}`;
25+
iconName = 'ios-person';
2626
}
2727

2828
return <Ionicons name={iconName} size={24} color={tintColor} />;

0 commit comments

Comments
 (0)