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

Cannot read property 'clone' of undefined #3017

Closed
CZHach opened this issue Apr 26, 2018 · 3 comments
Closed

Cannot read property 'clone' of undefined #3017

CZHach opened this issue Apr 26, 2018 · 3 comments

Comments

@CZHach
Copy link

CZHach commented Apr 26, 2018

I'm trying to use react-native-router-flux with my project.

Version

  • react-native-router-fluxv 4.0.0-beta.30
  • react-native v0.54.4

Error

TypeError: Cannot read property 'clone' of undefined

This error is located at:
in Router (at RouterComponent.js:9)

My Code

import React from 'react';
import { Scene, Router, Stack } from 'react-native-router-flux';
import LoginForm from './components/LoginForm';

const RouterComponent = () => {
    return (
        <Router hideNavBar= "true">
            <Scene key="root">  {/* App parent/root scene */}
                <Scene key="login" component={LoginForm} title="Please Login" />
            </Scene>
        </Router>
    );
};

export default RouterComponent;
@aksonov
Copy link
Owner

aksonov commented Jun 6, 2018

I can't reproduce. Please check Example project. Maybe you should not use { } inside Scene

@aksonov aksonov closed this as completed Jun 6, 2018
@socialcode-rob1
Copy link

@CZHach did you figure out the cause?

@zi6xuan
Copy link

zi6xuan commented Aug 29, 2018

You must like this Actions.product({ time: new Date() });to input the props
@socialcode-rob1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants