navigation笔记
react native存在的问题
vscode怎样打断点
_onPressButton()为什么以下划线命名
setState用法
render()用法eslint报错 不懂的地方:不懂怎么调试
不懂apk入库yarn start报错不知道怎么去解决 1 怎样让调试栏目处于最顶部
2 怎样快速找到问题的地方
3 怎么快速打断点类为什么前面加default import 如何快速找到该类
线上环境 suyan-test-js/Ssuyan-cmss-1234
Ssuyan-cmss-1234另外一个props是从哪过来的undefined 空区别 环境出现问题
1 查看js 和java端环境
2 删除掉缓存
3 退出编译器重新打开 两个编译器
4 androidstudio运行EnlargeTopEmotionBar
ShinkTopEmotionBar 之间的区别 快速打包 开会之前提前看评审,只说问题,不需要一个个过不太懂为什么是这个结果function* fibs() {let a = 0;let b = 1;while (true) {console.log('b==')// yield a;[a, b] = [b, a + b];console.log('b=='+b)}}let [first, second, third, fourth, fifth, sixth] = fibs();// console.log(first)// console.log(second)// console.log(third)// console.log(fourth)// console.log(fifth)// console.log(sixth)导航为什么这么写?Auth: {screen: AuthStack},
const AuthStack = createStackNavigator({Login: {screen: Login}}
);export default createSwitchNavigator({Auth: {screen: AuthStack},App: AppStack}
)报错<View style={styles.section, styles.lastSection}>let picType=this.state.condition.pic||'';if(picType==='1'){this.setState({ condition: { sortType: 1 } });}不懂为什么不能这样写picType={this.this.state.navigationParams.itemInfo.picType}Component 不太懂不懂
redux全局使用https://blog.csdn.net/weixin_40166364/article/details/78354663https://blog.csdn.net/andy_zhang2007/article/details/80080780https://stackoverrun.com/cn/q/12153178---------<Stack.Screen name="Home" component={HomeScreen }function HomeScreen({ navigation }) {}---------react-native ScrollView 布局方向dp概念入门https://juejin.im/post/5d6f27266fb9a06ad45162e1setTimeout(resolve, ms, 'done');方法map方法function timeout(ms) {return new Promise((resolve, reject) => {setTimeout(resolve, ms, 'done');});
}timeout(100).then((value) => {console.log(value);
});知识点
https://juejin.im/post/5d6f27266fb9a06ad45162e1promise
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise 已经处理https://juejin.im/post/5b605b035188251a90189c61text是从哪来的,怎样把值传过来
inputChange = {(text)=> this.inputChange(text)css属性
https://www.runoob.com/cssref/css3-pr-align-items.htmlreact-native 有道笔记整理 已经处理 空指针 已经处理const colors = {'light': {backgroundColor: '#ebebeb',itembgColor: '#fff',itemTextColor: '#333',borderColor: '#dddddd',borderColorSystemItem: '#dddddd',borderBottomColor: '#ddd',textInputBgColor: '#fff',contentColor: '#666',lableColor: '#333',itemTextSectionColor: '#999'},'dark': {backgroundColor: '#1b1b1b',itembgColor: '#262626',itemTextColor: '#999',borderColor: '#dddddd',borderColorTranslucence: 'rgba(221,221,221,0.5)',borderColorSystemItem: '#1b1b1b',textContent:'#888888',textContentBackGround:'#353535',buttonBgColor:'#c6c7c6',itemTextSectionColor:'#777777',buttonBgColorTranslucence:'rgba(198,199,198,0.5)',},darkValue:'dark',lightValue:'light'}style={[{position: 'absolute', bottom: 0}, 已经处理props.style]为什么有 props.style idea激活 已经处理item index是从哪里过来的 ? 好像是react flatList提供 已经处理_keyExtractor = (item, index) => {console.log('----(item, index)------ ')console.log(item)console.log(index)return index.toString();}react-native-pickerhttps://www.npmjs.com/package/react-native-pickerhttps://www.jianshu.com/p/90f8d1f3d638
点击改变按钮背景色 已经处理
https://www.jianshu.com/p/e9a4843fd873idea禁止更新提示isNaN是什么?? 为什么要加入这个判断选项再全面一点:(typeof(num)==="number")&&(num!==Infinity)&&!isNaN(num)为什么_onPressButton()前面不需要加function
export default class ButtonBasics extends Component {
_onPressButton() {alert('You tapped the button!')}}图片加载不出来---没有声明权限??vscode 参数提示
idea 参数提示静态布局写法,静态布局显示和隐藏不懂
redux全局使用js 怎样调用原生代码android 启动页面之前的状态栏颜色
主题确定窗口的颜色,代码确定布局背景颜色
在启动页面前面加状态栏颜色<style name="AppTheme.Splash" parent="AppTheme.NoActionBar"><item name="windowActionBar">false</item><item name="windowNoTitle">true</item><item name="android:statusBarColor" tools:ignore="NewApi">@color/color_CCCCCC</item></style>改变窗口背景色<style name="AppThemeDark" parent="Theme.AppCompat.Light.NoActionBar"><!-- Customize your theme here. --><item name="background">@color/colorPrimaryDark</item><item name="android:windowBackground">@color/colorPrimaryDark</item></style>os version 不懂 react-native 不调试的情况下 运行报错没有日志记录 toast报错
import RootSiblings from 'react-native-root-siblings';导航底部图标不显示npm install 依赖莫名奇妙升级// import App from './pages/navigators/tab/iconNavigation';$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
Loading dependency graph, done.
error Unable to resolve module `expo-font` from `node_modules/@expo/vector-icons/build/createIconSet.js`: expo-font could not be found within the project.If you are sure the module exists, try these steps:1. Clear watchman watches: watchman watch-del-all2. Delete node_modules: rm -rf node_modules and run yarn install3. Reset Metro's cache: yarn start --reset-cache4. Remove the cache: rm -rf /tmp/metro-*. Run CLI with --verbose flag for more details.
Error: Unable to resolve module `expo-font` from `node_modules/@expo/vector-icons/build/createIconSet.js`: expo-font could not be found within the project.If you are sure the module exists, try these steps:1. Clear watchman watches: watchman watch-del-all2. Delete node_modules: rm -rf node_modules and run yarn install3. Reset Metro's cache: yarn start --reset-cache4. Remove the cache: rm -rf /tmp/metro-*at ModuleResolver.resolveDependency (/Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:186:15)at ResolutionRequest.resolveDependency (/Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)at DependencyGraph.resolveDependency (/Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/node-haste/DependencyGraph.js:282:16)at Object.resolve (/Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/lib/transformHelpers.js:267:42)at /Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/DeltaBundler/traverseDependencies.js:426:31at Array.map (<anonymous>)at resolveDependencies (/Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/DeltaBundler/traverseDependencies.js:423:18)at /Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33at Generator.next (<anonymous>)at asyncGeneratorStep (/Users/steven/yuqing/demo/NavicationBar/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)# steven @ Steven-MacBook-Pro in ~/yuqing/demo/NavicationBar on git:master x [16:38:18] C:1
$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
Loading dependency graph, done.navigation4
https://www.cnblogs.com/vipstone/p/7516115.htmlReact-navigation5.x(createBottomTabNavigator)底部导航栏https://juejin.im/post/5e5744ac6fb9a07cd74f5762
navigation笔记相关推荐
- 超声slam相关资料
1.介绍了超声波概率模型 基于低成本移动机器人设计的超声SLAM 常见的超声波模型包括平均分布弧线模型.中线模型.高斯分布模型.经验模型 2.介绍了经验模型及其他模型 Sonar Sensor Mod ...
- 有关Navigation的研究——Silverlight学习笔记[29]
在Silverlight的程序设计中经常需要在多个XAML页面之间进行切换,以进行不同的功能操作.Silverlight为我们提供了一组控件以实现这一功能.本文将为大家介绍如何在Silverlight ...
- 【安卓笔记】—— 页面导航 Navigation(3)
ViewModel.LiveData.DataBinding 和 Navigation的 结合 搭建界面 创建 ViewModel DataBinding 绑定数据 ViewModel 核心作用:管理 ...
- 【安卓笔记】—— 页面导航 Navigation(2)
Navigation 中的数据传递和过渡动画 创建一个简单的页面导航 传递静态数据 传递动态数据 自定义动画 transalate:移动 scale:缩放 rotate:旋转 创建一个简单的页面导航 ...
- Prism4学习笔记(七):State-Based Navigation QuickStart
本节学习了Navigation的一些基本知识,觉得这节比较难.这里讲学习和理解点的东西记录下来.觉得本节应该弄清楚的问题的关键词 (1)CallMethodAction用于事件和行为的绑定. (2)I ...
- Android:安卓学习笔记之navigation的简单理解和使用
Android navigation的简单理解和使用 1 .基本概念 1.1.背景 1.2.含义 2.组成 2.1.Navigation graph 2.2.NavHostFragment 2.3.N ...
- 【Unity3DRPG入门学习笔记第四卷】Navigation 智能导航地图烘培
一.使用 Navigation 打开 Navigation 窗口 地面选择静态的(Navigation Static) 先处理地面,地面是可以行走的 (Walkable),树木占用的地方是不能行走的 ...
- 《Cognitive Mapping and Planning for Visual Navigation》读书笔记
原文链接:Cognitive Mapping and Planning for Visual Navigation 他山之石:学界 | 谷歌提交新论文提出认知型地图构建器和规划器:同时应对视觉导航的几 ...
- Recast Navigation 学习笔记(一)
RecastNavigation下载地址 https://github.com/recastnavigation/recastnavigation CritterAI 下载地址 http://www. ...
最新文章
- linux驱动:音频驱动(四)ASoc之machine设备
- 用它调试线上 bug,真得劲 | webconsole
- OpenWrite 赞助平台全流程说明
- Apache Traffic Server处理请求的过程
- pdf.js浏览中文pdf乱码的问题解决
- 从零开始学视觉Transformer(3):视觉问题中的注意力机制
- F2工作流引擎之-纯JS Web在线可拖拽的流程设计器(八)
- python中的random模块_Python中的random模块
- 服务器系统更新要多久,请问系统服务器多长时间更新一次
- 记录下帮助一位网友解决的关于android子控件的onTouch或onClick和父OnTouch 冲突的问题。
- git-合并分支指定commits
- 操作系统之伙伴堆实现
- python的整数类型_Python 标准数据类型:Bytes
- Win10离线 安装.net frame3.5
- python 请在微信客户端打开_(未解决)jmeter报错之“请在微信客户端打开链接”
- 计算机参数配置解读,教你看懂电脑配置参数,了解组装电脑基本知识
- Discuz仿魔客吧模板/素材资源站模板/包含DIY文件
- 论文解析:Neural Graph Collaborative Filtering
- java seek_java中seek()的用法
- 内购 税务信息页填写-新版填写
热门文章
- go java websocket_java的连接wss的websocket服务器代码如何转成go代码
- Unity Cinemachine智能相机教程(五):VirtualCamera的Extension扩展
- 使用ASP.NET Core、JavaScript和Angular防止CSRF攻击
- (三)使用自动编码器进行深度伪造
- Microsoft SignalR Map Controller具有页面可见性API和事件模糊功能,可映射文档管理系统(DMS)中的用户交互
- MySQL 8.0来了,逆之者亡...
- Windows Terminal 0.9 发布
- MongoDB中的分页–如何真正避免性能下降?
- 判断两个图片的特征向量_自媒体图文写多少字效果最好?多少张图片最合适?...
- 当前没有可用的服务器_调研Redis高可用两种方案