logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

git 合并分支出现 Please enter a commit message to explain why this merge is necessary;# especially if it

git 在pull或者合并分支的时候有时会遇到这个界面1丶按键盘左上角"Esc"2丶输入":wq",注意是冒号+wq,按回车键即可

#git
React + Electron

1.创建一个 react 项目# 安装 create-react-app 命令,如果已将安装请忽略npm install -g create-react-app# 创建 electron-react 项目create-react-app electron-react# 进入项目cd electron-react# 启动npm start浏览器输入 localhost:30...

第一个Electron程序

再此之前你需要安装node 官方下载:https://nodejs.org/en/download/安装好之后在命令行中输入 node -v 可查看到node的版本号即可1.创建一个空文件夹,在该文件夹中运行npm init运行后需要输入项目名称版本描述各种,一切默认即可,完成后会在文件夹中生成package.json 文件,这里稍加修改{"name": "hel...

React Native Text 文字垂直居中

import {Platform} from 'react-native';style: {fontSize: 28,height: 40,textAlign: 'center',textAlignVertical: 'center',...Platform.select({ios: { lineHeight: 40 },androi...

新建的 React Native 项目报错Pointer is missing a nullability type specifier

为了避免麻烦,我觉得新建一个项目首先注意一下两点构建项目时指定 react-native 的版本react-native init myrn --version 0.57.0新建好项目后首先rm -rf node_modules &&npm install1. ios 错误信息如下Pointer is missing a nullability type...

React Native Android物理返回键 两次退出程序

//注册componentDidMount() {if (Platform.OS === 'android') {BackHandler.addEventListener('hardwareBackPress', this.onBackHandler);}}//移除componentWillUnmount() {if (Platform....

React Native Realm 配置及使用

官方文档一 安装npm install realm@2.1.0 --save#没指定版本我这边安装失败二 配置Android2.1.1 文件 android/app/build.gradledependencies {implementation project(':realm') //++}2.1.2文件 android/settings.g...

React Native ios 填坑之 Error: `fsevents` unavailable (this watcher can only be used on Darwin)

react-native run-ios 运行报错Error: `fsevents` unavailable (this watcher can only be used on Darwin)网上一查两个命令解决,但是........我这边brew install watchman 安装失败一直卡在哪里npm r -g watchmanbrew install watchman...

到底了