Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions.replace: There is no route defined for Key X #3258

Closed
dyy1372130254511 opened this issue Sep 12, 2018 · 5 comments
Closed

Actions.replace: There is no route defined for Key X #3258

dyy1372130254511 opened this issue Sep 12, 2018 · 5 comments
Assignees
Labels

Comments

@dyy1372130254511
Copy link

Version

Tell us which versions you are using:

](url)
  • react-native-router-flux v4.0.1
  • react v16.3.1
  • react-native v0.55.4
const scenes = Actions.create(
            <Lightbox>
                <Scene key="root">
                    <Scene hideNavBar activeTintColor={AppColors.primary} key="main" tabBarPosition={'bottom'}
                           tabs={true}>
                        <Scene hideNavBar key="index" title="首页" icon={TabIcon('\ue62f')} component={index}/>
                        <Scene hideNavBar key="category" title="商品分类" icon={TabIcon('\ue634')} component={category}/>
                        <Scene hideNavBar key="cart" title="购物车" icon={observer(TabIcon('\ue63f', 'cart'))}
                               component={cart}/>
                        <Scene hideNavBar key="user" title="我的" icon={TabIcon('\ue6e6')} component={User}/>
                    </Scene>

                </Scene>
            </Lightbox>);

Steps to reproduce

1.yarn add aksonov/react-native-router-flux
2.in page 'index' when using Actions.replace("cart") get error : There is no route defined for key undefined Must be one of :'index','category','test','cart','user'

@daviscabral
Copy link
Collaborator

I'll check it - sounds like something it was already fixed for the next release.

@arghyaExicube
Copy link

Is there any solution for now to naviagte between tabs with props?

@daviscabral
Copy link
Collaborator

I am working in a fix for it.

@daviscabral
Copy link
Collaborator

Could you check last published version 4.0.2 to see if that might have fixed your problem?

@daviscabral
Copy link
Collaborator

On 25 Sep 2018, at 04:05, 默 [email protected] wrote:
running well in my project, great

Great. Closing this one.

Repository owner locked as resolved and limited conversation to collaborators Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants