1 Star 1 Fork 3

张翔/react-native-yusha-customKeyboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
HFInteractionManager.js 521 Bytes
一键复制 编辑 原始数据 按行查看 历史
刘云霞 提交于 2018-01-17 15:52 . first commit
import {
InteractionManager
} from 'react-native'
export default {
...InteractionManager,
runAfterInteractions: f => {
// ensure f get called, timeout at 500ms
// @gre workaround https://github.com/facebook/react-native/issues/8624
let called = false;
const timeout = setTimeout(() => { called = true; f() }, 500);
InteractionManager.runAfterInteractions(() => {
if (called) return;
clearTimeout(timeout);
f();
});
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/faithmin/react-native-yusha-customKeyboard.git
git@gitee.com:faithmin/react-native-yusha-customKeyboard.git
faithmin
react-native-yusha-customKeyboard
react-native-yusha-customKeyboard
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385