Skip to content

Commit

Permalink
Merge pull request #43495 from rezkiy37/refactor/43491-memorize-botto…
Browse files Browse the repository at this point in the history
…m-tab

Memoize for BottomTabBar
  • Loading branch information
mountiny authored Jun 12, 2024
2 parents 69dfe2a + 9962aef commit 033e74c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {useNavigation, useNavigationState} from '@react-navigation/native';
import React, {useCallback, useEffect} from 'react';
import React, {memo, useCallback, useEffect} from 'react';
import {View} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
Expand Down Expand Up @@ -131,4 +131,4 @@ export default withOnyx<PurposeForUsingExpensifyModalProps, PurposeForUsingExpen
isLoadingApp: {
key: ONYXKEYS.IS_LOADING_APP,
},
})(BottomTabBar);
})(memo(BottomTabBar));

0 comments on commit 033e74c

Please sign in to comment.