![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react native
文章平均质量分 76
代码不多程序员
qq交流:1405158149
展开
-
移动端技术选型
目前移动端开发方式有4种:Flutter 原生(oc, java) js转原生框架(facebook的React Naitve ,阿里的weex) webview混合开发 (uinapp,ionic,webview混合开发)一、Flutter 官网介绍:Flutter 应用会在一个 VM(程序虚拟机)中运行,Flutter 应用程序会直接编译为机器代码 intel x64 或 ARM 指令集。 flutter是目前为止性能直逼 native 的解决方案...原创 2021-07-28 14:04:50 · 566 阅读 · 0 评论 -
react native 样式动态改变
import {StyleSheet,Platform} from 'react-native';lineHeight:36PaymentTimeStyle:{ height:36, width:100, textAlign:'center', alignItems:'center', justifyCon...原创 2020-02-09 04:13:04 · 3001 阅读 · 0 评论 -
android 沉浸式导航栏
<StatusBar animated={true} //指定状态栏的变化是否应以动画形式呈现。目前支持这几种样式:backgroundColor, barStyle和hidden hidden={false} //是否隐藏状态栏。 backgroundColor={'transparent'} //状态栏的背景色 translucent={true} /...原创 2020-02-07 21:50:10 · 291 阅读 · 0 评论 -
react native redux 梳理
redux 就是一个通过派发 action 通过 Reducer 改变 state 值,setState是一个 merge 合并操作,只修改指定属性,不影响其他属性 state进行局部重新渲染。异步进行的。redux 执行步骤用户页面行为触发一个Action,然后,Store 自动调用 Reducer,并且传入两个参数:当前 State 和收到的 Action。Reduce...原创 2019-02-14 04:08:46 · 199 阅读 · 0 评论 -
DeviceEventEmitter RN通知
DeviceEventEmitter RN通知原创 2019-02-14 04:09:43 · 279 阅读 · 0 评论 -
reactjs 兄弟通信,父子通信
父子通信 props , 子父通信 回调 兄弟通信 父组件为中介,发布订阅模式原创 2019-02-14 04:19:03 · 313 阅读 · 0 评论 -
DeviceEventEmitter 使用监听通知进行传值
import { DeviceEventEmitter } from 'react-native'; componentDidMount() { this.event = DeviceEventEmitter.addListener("onClickButton", (text,...) => { //注册通知 console.log(text); ...原创 2019-03-04 00:08:46 · 1977 阅读 · 0 评论 -
sqlite fts5 编译 xcode other c flags
-DSQLITE_ENABLE_FTS5-DSQLITE_HAS_CODEC、-DSQLITE_TEMP_STORE=2、-DSQLITE_THREADSAFE、-DSQLCIPHER_CRYPTO_CC原创 2019-06-07 10:00:35 · 407 阅读 · 0 评论 -
WebStorm React JS语法报错问题
需要设置2处即可解决:一、设置 javaScript language version 为 React jsx二、设置ESLint Disable ESLint原创 2019-08-10 19:40:15 · 1354 阅读 · 0 评论 -
react-native 查看对象属性
for(let item in this.props.navigator.state){ alert( item) }原创 2018-11-15 16:35:43 · 1066 阅读 · 0 评论 -
html5 测试视频
http://www.runoob.com/try/demo_source/mov_bbb.mp4原创 2018-11-06 10:57:44 · 1106 阅读 · 0 评论 -
npm install react-native-video --save
npm install react-native-video --save原创 2018-10-25 19:48:33 · 365 阅读 · 0 评论 -
Failed to resolve:com.android.support:appcompat-v7
1. prefrences > updates 查看 build toos 版本和 api版本 llprojects { repositories { google() jcenter() mavenLocal() maven { // All of React Nat...原创 2018-10-24 10:11:11 · 327 阅读 · 0 评论 -
The development server returned response error code: 500
Body: {"originModulePath":"/Users/shenzhenzhilian/Desktop/reactnative/AwesomeProject/index.js","targetModuleName":"@babel/runtime/helpers/interopRequireDefault","message":"Unable to resolve modul.原创 2018-10-24 10:14:07 · 1386 阅读 · 0 评论 -
Error: Command failed: xcrun instruments -s
Error: Command failed: xcrun instruments -sxcrun: error: unable to find utility "instruments", not a developer tool or in PATH解决sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/...原创 2018-10-24 14:58:14 · 3198 阅读 · 0 评论 -
react-native run-android 81CEBMP23NTV
react-native run-android 81CEBMP23NTV原创 2018-10-31 15:24:33 · 107 阅读 · 0 评论 -
react native 文件引用
导出类在别的文件中引用 export default class原创 2018-10-24 18:47:55 · 877 阅读 · 0 评论 -
react native release语法问题解决
xcode->Product->Scheme->Manage Scheme->选中列表中的工程对应的那个scheme, 点击-,删除点击+, 重新创建新的scheme.clean一下.就OK了原创 2018-10-24 21:22:11 · 256 阅读 · 0 评论 -
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output and
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/原创 2018-10-25 00:23:26 · 1050 阅读 · 0 评论 -
React native 浏览器调试
1.在 chrome 中打开: http://10.10.10.137:8081/debugger-ui./2. 确保 开发服务器开启 2.1 开启服务器: node_modules/react-native/ 中执行 npm run start原创 2018-05-22 11:13:11 · 2706 阅读 · 0 评论