永久违反:在“ Connect(App)”的上下文或道具中找不到“商店”。要么包装根组件

时间:2019-02-13 04:45:25

标签: javascript reactjs react-native configuration react-native-ios

我无法在ios上运行react-native应用程序,因为未提供商店。虽然我在代码中创建并提供商店

import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import App from './App';
import configureStore from './src/store/configureStore';

const store = configureStore();

const RNRedux = () => (
    <Provider store={store}>
        <App />
    </Provider>
);

AppRegistry.registerComponent('rncourse', () => RNRedux);

0 个答案:

没有答案