Skip to content

NextChampion/react-native-redux-navigation-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

react-native-redux-navigation-example

启动

到项目根目录package.json文件所在目录下, 执行 yarn

然后通过Xcode或者Android studio 运行项目即可

其他

作者简书

react-native中使用redux的原理分析

react-native项目中从零开始使用redux

报错

由于react-native版本问题,运行demo的时候,可能会遇到报错。

报错1

Make sure you’re running a packager server or have included a .jsbundle file in your application

解决方法:

到项目根目录下package.json文件所在的目录下 执行 npm install -g react-native-git-upgrade react-native-git-upgrade

报错2

Unknown argument type 'attribute' in method -[RCTUIManager setJSResponder:blockNativeResponder:]

解决方法

路径: /node_modules/react-native/React/Base/RCTModuleMethod.mm.文件 找到 static BOOL RCTParseUnused 这个方法

替换成

static BOOL RCTParseUnused(const char **input)
{
  return RCTReadString(input, "__unused") || RCTReadString(input, "__attribute__((__unused__))") || RCTReadString(input, "__attribute__((unused))");
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published