小编Jak*_*reb的帖子

React Native Redux:错误找不到变量mapStateToProps

我一直在尝试将 Redux 实施到我正在创建的多页表单设置的 React-Native 注册应用程序中。

我不断收到此错误:

在此处输入图片说明

请查看应用程序根容器下方的相关代码:

import React, { Component } from 'react';
import ReactNative from 'react-native';
import { AppRegistry,Text,View,} from 'react-native';
import { Button } from 'react-native-elements'
import { StackNavigator } from 'react-navigation'
import store from '../store/store';
import { Provider,connect } from  'react-redux';
import Register1 from './emailandpass'
import Register2   from './namefields'
//import login      from './login'
//import confirmation from './confirmation'
//import success      from './success'

class Loginscreen extends React.Component{
	static navigationOptions= {
		title: 'Welcome to LearnD',
							 }
  render() {
  	const …
Run Code Online (Sandbox Code Playgroud)

javascript reactjs react-native redux

5
推荐指数
1
解决办法
5237
查看次数

标签 统计

javascript ×1

react-native ×1

reactjs ×1

redux ×1