上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 1. 进入工程目录,启动:Metro npx react-native start 2. 然后在新的terminal窗口中运行app npx react-native run-ios 第1,2步参考:https://reactnative.dev/docs/environment-setup#run 阅读全文
posted @ 2023-06-06 12:42 saaspeter 阅读(216) 评论(0) 推荐(0)
摘要: 以下用的是react native cli的方式。如果使用Expo Go,请参考:https://reactnative.dev/docs/environment-setup?guide=quickstart 1. 安装cli命令: npm uninstall -g react-native-cli 阅读全文
posted @ 2023-06-03 00:36 saaspeter 阅读(781) 评论(0) 推荐(0)
摘要: 最早直接采用brew安装,如下: brew install node@18 brew uninstall node@18 // 卸载 但学习的项目用的是老版本node,所以卸载了,用NVM来管理多版本node,参考这篇文章: https://blog.bigoodyssey.com/how-to-m 阅读全文
posted @ 2023-05-31 17:51 saaspeter 阅读(416) 评论(0) 推荐(0)
摘要: 我在terminal中设置了proxy后,开启proxyon后,执行npm install包错误: (proxyon是通过在~/.zshrc 中添加export http_proxy来实现的) 把proxyoff后,错误又没有了,不知道是啥问题。如果碰到这个问题就用: npm config set 阅读全文
posted @ 2023-05-30 12:34 saaspeter 阅读(2936) 评论(0) 推荐(0)
摘要: 摘抄自react in action , see chapter4: 直接上图: DEFINITION Mounting is the process of React inserting your components into the real DOM. Once done, your comp 阅读全文
posted @ 2023-05-29 18:16 saaspeter 阅读(19) 评论(0) 推荐(0)
摘要: 摘抄自:https://medium.com/@agzuniverse/webpack-and-babel-what-are-they-and-how-to-use-them-with-react-5807afc82ca8 Webpack and Babel — Tools we can’t cod 阅读全文
posted @ 2023-05-27 23:34 saaspeter 阅读(32) 评论(0) 推荐(0)
摘要: What is this? In JavaScript, the this keyword refers to an object. Which object depends on how this is being invoked (used or called). The this keywor 阅读全文
posted @ 2023-05-27 17:09 saaspeter 阅读(37) 评论(0) 推荐(0)
摘要: import React, { Component } from "react"; import { render } from "react-dom"; import PropTypes from "prop-types"; const node = document.getElementById 阅读全文
posted @ 2023-05-27 11:14 saaspeter 阅读(50) 评论(0) 推荐(0)
摘要: see: https://legacy.reactjs.org/blog/2015/12/18/react-components-elements-and-instances.html https://www.robinwieruch.de/react-element-component/ http 阅读全文
posted @ 2023-05-26 16:35 saaspeter 阅读(26) 评论(0) 推荐(0)
摘要: 参考: https://segmentfault.com/a/1190000007535316 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise https://devel 阅读全文
posted @ 2023-05-25 23:30 saaspeter 阅读(24) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页