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

undefined is not a function (evaluating '_reactNativeRouterFlux.Actions.create') #2003

Closed
omprakash1989 opened this issue Jul 10, 2017 · 2 comments

Comments

@omprakash1989
Copy link

Hey...I am getting the above error while I am trying to create scenes and use it in Router.
I have added the code below.

My scenes.js

import React from "react";
import { Actions, Scene } from "react-native-router-flux";
import HomeContainer from "./Home/container/HomeContainer";
import StoreContainer from "./Store/container/StoreContainer";

const scenes = Actions.create(
    <Scene key="root">
        <Scene key="home" component={HomeContainer} />
        <Scene key="store" component={StoreContainer} />
    </Scene>
);

export default scenes;

index.js


import React, { Component, PropTypes } from "react";
import { Router } from "react-native-router-flux";

import scenes from "../routes/scenes";

import { Provider } from "react-redux";

export default class AppContainer extends Component {
	static propTypes = {
		store: PropTypes.object.isRequired
	}
	render(){
		return (
			<Provider store={this.props.store}>
				<Router scenes={scenes} />
			</Provider>
	    );
	}
}

Can anyone help me here?

@aksonov
Copy link
Owner

aksonov commented Jul 10, 2017

Please check 'breaking changes' first and search before create new issues #1992

@aksonov aksonov closed this as completed Jul 10, 2017
@omprakash1989
Copy link
Author

@aksonov: Sorry...my bad.

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

2 participants