Javascript React Native TypeError store.getState不是函数

Javascript React Native TypeError store.getState不是函数,javascript,react-native,react-redux,redux-saga,Javascript,React Native,React Redux,Redux Saga,大家好,我正在努力使我的代码更具可读性和实用性 在React Native中使用redux传奇,我遇到了一些问题 当我尝试加载应用程序时,出现以下错误: TypeError:store.getState不是函数 此错误位于: in Connect(Reprov) (at App.js:17) in RCTView (at View.js:44) in Provider (at App.js:14) in App (at renderApplication.js:34) in RCTView (a

大家好,我正在努力使我的代码更具可读性和实用性

在React Native中使用redux传奇,我遇到了一些问题

当我尝试加载应用程序时,出现以下错误:

TypeError:store.getState不是函数

此错误位于:

in Connect(Reprov) (at App.js:17)
in RCTView (at View.js:44)
in Provider (at App.js:14)
in App (at renderApplication.js:34)
in RCTView (at View.js:44)
in RCTView (at View.js:44)
in AppContainer (at renderApplication.js:33)
src/store/configureStore.js


src/App.js
import React,{Component}来自“React”
从“react native”导入{View};
从'react redux'导入{Provider};
从“./Navigation”导入AppNavigation;
从“/store/configureStore”导入存储;
从“./screens/Reprov”导入重新编程;
来自“/screens/Aprov”的进口批准;
从“./components/Push”导入PushNotificationController;
类应用程序扩展组件{
render(){
返回(
)
}
}
导出默认应用程序;

我不知道我做错了什么…

您正在将存储作为变量导入文件中,它是一个函数:

从“/store/configureStore”导入存储

试试这个:

import configureStore from './store/configureStore';
然后创建一个变量存储

const store = configureStore();

您将存储作为变量导入,在文件中,它是一个函数:

从“/store/configureStore”导入存储

试试这个:

import configureStore from './store/configureStore';
然后创建一个变量存储

const store = configureStore();