react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

Pop gesture not working

Open gethabit opened this issue 7 years ago • 4 comments

Issue Description

I am looking to enable to swipe to go back on iOS. However the gesture is doing nothing. I am using a bottomTabs

Set Root:

const TabRoutes = () => {
  Navigation.setRoot({
    root: {
      bottomTabs: {
        children: [
          {
            stack: {
              children: [
                {
                  component: {
                    name: 'ExploreScreen',
                  },
                },
            ],
              options: {
                bottomTab: {
                  text: 'Explore',
                  icon: require('../images/home.png'),
                  selectedIconColor: Colors.primary,
                  selectedTextColor: Colors.primary,
                  iconColor: Colors.lightGrey,
                  textColor: Colors.lightGrey,
                }
              }
            },
          },
          {
            stack: {
              children: [{
                component: {
                  name: 'SettingsScreen',
                },
              }],
              options: {
                bottomTab: {
                  text: 'Settings',
                  icon: require('../images/settings.png'),
                  selectedIconColor: Colors.primary,
                  selectedTextColor: Colors.primary,
                  iconColor: Colors.lightGrey,
                  textColor: Colors.lightGrey,
                }
              }
            },
          }
        ],
        options: {
          bottomTabs: {
           backgroundColor: '#fafafa'
         },
        }
      }
    }
  });
};

Screens are pushed

goToListingScreen(location) {
    Navigation.push(this.props.componentId, {
      component: {
        name: 'ListingScreen',
        passProps: {
          location
        }
      }
    });
  }

Screens are registered:

const RegisterScreens= () => {
  Navigation.registerComponentWithRedux('AuthScreen', () => AuthScreen, Provider, store);
  Navigation.registerComponentWithRedux('ExploreScreen', () => ExploreScreen, Provider, store);
  Navigation.registerComponentWithRedux('SearchScreen', () => SearchScreen, Provider, store);
  Navigation.registerComponentWithRedux('ListingScreen', () => ListingScreen, Provider, store);
  Navigation.registerComponentWithRedux('SettingsScreen', () => SettingsScreen, Provider, store);
  Navigation.registerComponentWithRedux('MembershipScreen', () => MembershipScreen, Provider, store);
  Navigation.registerComponentWithRedux('SuccessScreen', () => SuccessScreen, Provider, store);
  Navigation.registerComponentWithRedux('ProfileScreen', () => ProfileScreen, Provider, store);
  Navigation.registerComponentWithRedux('CurrentVisitScreen', () => CurrentVisitScreen, Provider, store);
  Navigation.registerComponentWithRedux('PastVisitsScreen', () => PastVisitsScreen, Provider, store);
  Navigation.registerComponentWithRedux('SupportScreen', () => SupportScreen, Provider, store);
  Navigation.registerComponentWithRedux('LocationButton', () => LocationButton, Provider, store);
  Navigation.registerComponentWithRedux('MapScreen', () => MapScreen, Provider, store);

  Navigation.registerComponentWithRedux('SetLocationScreen', () => SetLocationScreen, Provider, store);

};

Steps to Reproduce / Code Snippets / Screenshots

[FILL THIS OUT]


Environment

  • React Native Navigation version: FILL THIS OUT
  • React Native version: FILL THIS OUT
  • Platform(s) (iOS, Android, or both?): FILL THIS OUT
  • Device info (Simulator/Device? OS version? Debug/Release?): FILL THIS OUT

gethabit avatar Jan 28 '19 17:01 gethabit

This will be fixed when #4568 is merged.

rawrmaan avatar Jan 28 '19 21:01 rawrmaan

@rawrmaan Thank you for the update!

gethabit avatar Jan 29 '19 01:01 gethabit

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Feb 28 '19 02:02 stale[bot]

Going to go ahead and close this. This is a known issue and there are several issues about it.

ItsNoHax avatar Mar 01 '19 15:03 ItsNoHax