小编Sar*_*nya的帖子

无法解析模块“react-redux”...模块“react-redux”在 Haste 模块映射中不存在

app.js 文件中包含用于 React Redux 的导入语句的代码被创建,以显示带有名为“Tech stack”的文本的标题。

App.js

import React from 'react';
import { View } from 'react-native';
import { Header } from './components/common';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducers from './reducers';


const App = () => {
  return(
    <Provider store={createStore(reducers)}>
      <View>
        <Header headerText="Tech Stack" />
      </View>
    </Provider>
  );
};

export default App;

This is the index file

index.js

import { AppRegistry } from 'react-native';
import App from './src/App';


AppRegistry.registerComponent(tech_stack, () => App); …
Run Code Online (Sandbox Code Playgroud)

module react-native react-redux

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

找不到React / RCTBridgeDelegate.h'文件

我在终端上使用react-native init auth创建了一个名为auth的新项目。当我尝试使用react-native run-ios运行该项目时。构建失败,并提供了一个错误“ React / RCTBridgeDelegate.h”文件。

试图更新react本机版本

Mac终端上的react-native run-ios

我希望构建成功并查看ios模拟器我得到的实际结果是构建失败,因此无法看到模拟器

build project new-operator react-native

4
推荐指数
5
解决办法
2195
查看次数