Jacob
Jacob
组件封装
### props & state 在进行组件封装之前,需要先对 `props` 和 `state` 有所了解,这里是[官方文档说明](https://facebook.github.io/react-native/docs/props.html)。简单地讲,`props` 是作为参数传递到子组件的,子组件通过接收不同的 `props` ,结合组件已有的通用功能或是样式,达到组件复用效果。当组件内部需要更新某些状态的时候,这时候则需要使用到 `state` 。 ### 无状态组件(Stateless Functional Component) 在大部分情况下,封装的组件都不需要自己维护内部状态,只当做 UI 展示组件,由外部传入的 `props` 来决定不同的渲染效果。在这种情况下,我们应当优先选择无状态组件,这里只用 ES6 语法作为示例: ``` -js /* * StaticCell.js...
#### 1、InteractionManager 的 callback 失效 `InteractionManager` 接口的 `runAfterInteractions` 中的 callback 有时不触发,[官方issue处理](https://github.com/facebook/react-native/issues/8624#issuecomment-231040370)。 #### 2、TextInput 的 `secureTextEntry` 问题 `TextInput` 在 iOS 8 下,动态修改 `secureTextEntry` 属性时,光标位置发生变化,官方 issue 中网友提到的[处理](https://github.com/facebook/react-native/issues/5859#issuecomment-182584283),自己项目中的处理: ``` // 明文显示密码 showPassword =...
跑的是提供的 Demo 工程,步骤: * 新建了自己的仓库,https://github.com/ljunb/example_spec_source 和 https://github.com/ljunb/example_spec_bin_dev ,且 podspec 中的服务器地址都改成了[本地服务](https://github.com/ljunb/example_spec_bin_dev/blob/55e17da4f6326bc4985feaa197b738380d899df2/AFNetworking/4.0.1/AFNetworking.binary.podspec.json#L12),确定是有 push 权限的 * 执行 pod bin init 进行初始化配置: ``` configuration_env: dev code_repo_url: https://github.com/ljunb/example_spec_source.git binary_repo_url: https://github.com/ljunb/example_spec_bin_dev.git binary_download_url: http://localhost:8080/frameworks/%s/%s/zip download_file_type: zip ```...
Hello, we are the FoxWallet team, we hope to add FoxWalelt strategy to `wallet-ts`, you can learn more about our team at [here](https://foxwallet.com/). This pull request includes the following features:...
Hi, We are FoxWallet team, and we want to add supporting FoxWallet in `wallet-ts` and `wallet-evm`. FoxWallet is multi-chain wallet that support Injective protocol. You can find more information about...