Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Can't route to Index route (/) #39

Closed
younanjo opened this issue Sep 10, 2017 · 1 comment
Closed

Can't route to Index route (/) #39

younanjo opened this issue Sep 10, 2017 · 1 comment
Assignees
Projects

Comments

@younanjo
Copy link

younanjo commented Sep 10, 2017

Given the following:

const Root = (): React$Element<any> => (
  <Provider store={store}>
    <ConnectedRouter history={history}>
      <DeepLinking>
        <View style={styles.container}>
          <StatusBar />
          <Navigation>
            <Card exact path="/" render={() => <IndexScene />} title={'Index'} />
            <Card
              exact
              path="/a"
              render={() => <AScene />}
              title={'A screen'}
            />
            <Card
              exact
              path="/b"
              render={() => <BScene />}
              title={'B screen'}
            />
          </Navigation>
        </View>
      </DeepLinking>
    </ConnectedRouter>
  </Provider>
);

if i try to route from screen /b to index / using:

  <Link component={TouchableOpacity}  to={'/'} replace>
         <Text>Back to index</Text>
  </Link>

I'm getting:

screen shot 2017-09-10 at 7 48 39 pm

What am i doing wrong here?

@younanjo younanjo changed the title Can't route to Index route ( Can't route to Index route (/) Sep 10, 2017
@LeoLeBras LeoLeBras added this to the 1.0.0-rc milestone Sep 10, 2017
@LeoLeBras LeoLeBras removed this from the 1.0.0-rc milestone Dec 9, 2017
@LeoLeBras LeoLeBras self-assigned this Jan 21, 2018
@LeoLeBras LeoLeBras mentioned this issue Mar 10, 2018
18 tasks
@LeoLeBras LeoLeBras added this to In progress in v2 Oct 11, 2018
@LeoLeBras
Copy link
Member

LeoLeBras commented Nov 8, 2018

This should be fixed in the version v2.0.0-alpha.7

@LeoLeBras LeoLeBras moved this from In progress to Done in v2 Nov 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
v2
  
Done
Development

No branches or pull requests

2 participants