refactor Navigation

This commit is contained in:
ammarahm-ed
2020-11-26 16:22:32 +05:00
parent 96dc6410cd
commit a4814e07a4
22 changed files with 449 additions and 442 deletions

View File

@@ -3,7 +3,8 @@ import { Platform, StyleSheet, View } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useTracked } from '../../provider';
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
import NavigationService from '../../services/Navigation';
import Navigation from '../../services/Navigation';
import { dWidth } from '../../utils';
import { eScrollEvent } from '../../utils/Events';
import { SIZE } from '../../utils/SizeUtils';
@@ -71,7 +72,9 @@ export const Header = ({root}) => {
<View style={styles.rightBtnContainer}>
<ActionIcon
onPress={async () => {
NavigationService.navigate('Search');
Navigation.navigate('Search',{
menu:false
});
}}
name="tune"
size={SIZE.xxxl}