React-native-router-flux: Cannot read property 'clone' of undefined

Created on 26 Apr 2018  路  3Comments  路  Source: aksonov/react-native-router-flux

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;

Most helpful comment

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

All 3 comments

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

@CZHach did you figure out the cause?

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vinayr picture vinayr  路  3Comments

llgoer picture llgoer  路  3Comments

booboothefool picture booboothefool  路  3Comments

sarovin picture sarovin  路  3Comments

maphongba008 picture maphongba008  路  3Comments