React-native-router-flux: Is the Documentation of "Reactive/Redux/Flux" is correct or working?

Created on 9 Sep 2016  路  11Comments  路  Source: aksonov/react-native-router-flux

"Reactive/Redux/Flux" setup problem

Have anyone tried to follow "Reactive/Redux/Flux" documentation?

https://github.com/aksonov/react-native-router-flux/blob/master/docs/REDUX_FLUX.md

Or can anyone provide the working setup?

documentation question

Most helpful comment

I have followed all the steps as per documentation.
But only changed in MyComponent :
import React, { Component } from 'react';
import { PropTypes, Text } from 'react-native';

One thing I have import the App from app.js in index.android.js

I got the error:

error_small

All 11 comments

What is your issue exactly and what are you trying to do ?

I have followed all the steps as per documentation.
But only changed in MyComponent :
import React, { Component } from 'react';
import { PropTypes, Text } from 'react-native';

One thing I have import the App from app.js in index.android.js

I got the error:

error_small

You're right, the sample contains an error.

- import React, { PropTypes, Text } from 'react-native';
+ import React, { PropTypes } from 'react';
+ import { Text } from 'react-native';
 import { connect } from 'react-redux';

I'll fix this on the documentation, thank you.

Let me know if it doesn't solve your issue.

Hi,

You should add one more thing in app.js.

import { Router, Scene } from 'react-native-router-flux'; // Scene is missing there

Though I am getting another error- undefined is not an object ( evaluating 'el.props.component'); // Actions js

Can you send a screenshot of this?

error_small2

In the provider section I have import MyComponent

Provider store={store}
RouterWithRedux
// your scenes here
Scene key="MyComponent" component={MyComponent} title="Replace" type="replace"
RouterWithRedux
Provider

@krishbhattacharyya - were you able to resolve the above issue ? I am getting the same error. :/

@manishtuteja10 @krishbhattacharyya - Same issue. Did you guys find any solution yet?

@manishtuteja10 , after struggling long days I did not used this . But anyone can close this issue if it's worked.

It worked for me. I followed the documentation below.
https://github.com/aksonov/react-native-router-flux/blob/master/docs/REDUX_FLUX.md

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maphongba008 picture maphongba008  路  3Comments

YouYII picture YouYII  路  3Comments

tonypeng picture tonypeng  路  3Comments

sreejithr picture sreejithr  路  3Comments

fgrs picture fgrs  路  3Comments