一.报错的代码 错误 -- out of bounds 超出界限的意思 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSInvocation setArgument:atIndex:]: index (2) out of bounds [-1, 1]' 错误的代码 苹果提供的建议方法 正确的代码…
React Native运行的时候,经常碰到React Native unable to load script from assets index.android.bundle on windows解决方法有2种: 方法一:设置IP和端口 具体步骤:报错页面晃动手机,显示菜单 => 点击Dev Settings => 点击Debug server host & port for device => 设置IP和端口(ex:192.168.0.20:8081)=> 点击返回…