RN学习踩坑记录

前言

问题列表

特征 解决方案 原因
state `RESPONDER_INACTIVE_PRESS_IN` to `RESPONDER_ACTIVE_LONG_PRESS_IN`, which is not supported. 关闭Debug JS Remotely模式,如果有文本信息要加入点击事件,请用TouchableOpacity包裹 Touchablexxx包裹点击控件时,包含了文本信息内容在Debug JS Remotely模式调试时会引起异常
undefined is not an object (evaluating 'xxx') 自定义function(){}修改为自定义function=()=>{} 在通过自定义函数操作时,多使用箭头函数,因为箭头函数的this就是全局的this,可以操作全局变量
npm install 时提示: npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, rmdir 'F:\xx' npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, rmdir 'F:\xx' npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, rmdir 'F:\xx' npm 命令行输入:config set user 0和npm config set unsafe-perm true 应该是需要用主用户权限操作
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] win&linux系统无需在意 fsevents是mac osx系统的

你可能感兴趣的:(RN学习踩坑记录)