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

Error Requiring unknown module react-redux/native #19

Open
danilvalov opened this issue Jul 1, 2016 · 2 comments
Open

Error Requiring unknown module react-redux/native #19

danilvalov opened this issue Jul 1, 2016 · 2 comments

Comments

@danilvalov
Copy link

danilvalov commented Jul 1, 2016

Please, update your example. You need change:

import {Provider} from 'react-redux/native';

to:

import {Provider} from 'react-redux';

And change:

        <Provider store={store}>
          {() => <App />}
        </Provider>

to

        <Provider store={store}>
          <App />
        </Provider>

Detail:
reduxjs/react-redux#236 (comment)

@symmetriccurve
Copy link

Also Change

var React = require('react-native');
var {AppRegistry, StyleSheet,Text,View} = React;

to

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

Change

class {componentName} extends React.Component

to

class App extends Component

and

from
var Button = require('react-native-button');

to
import Button from 'react-native-button'

@symmetriccurve
Copy link

I have a Sent a Pull-Request to this

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