摘要: react-native接入插件react-navigation 创建的抽屉菜单后 无法关闭抽屉菜单,只能再加一项“关闭”调用代码关闭菜单 点击其他地方无法关闭抽屉菜单 看了一下源码 没想到好办法后 在网上找到这样一个解决方案 现在贴出来: 下面是android的解决方案,在java中的MainAc 阅读全文
posted @ 2019-07-11 15:29 levenies 阅读(977) 评论(0) 推荐(0) 编辑
摘要: I had this issue a bit ago after upgrading to RN 0.59. The solution that worked for me, was to delete the ios/build folder, and then do this: cd ios p 阅读全文
posted @ 2019-06-10 20:25 levenies 阅读(2851) 评论(0) 推荐(0) 编辑
摘要: 游戏中会遇到时区的问题 比如北京时间晚上8点开启一个活动,此时此刻在世界各地都应该可以参加 这个时候我们计算时间应该按照服务器的时间计算。 所以一般做法是 服务器发给客户端一个server_timestamp ,时间戳的意思是从1970年1月1日零时到现在的时间总秒数 在lua中我们会转化成日期,比 阅读全文
posted @ 2018-06-23 11:48 levenies 阅读(1204) 评论(0) 推荐(0) 编辑
摘要: 文本的处理其实可以很丰富,下面是渐变文字显示的一种处理方式。 阅读全文
posted @ 2016-03-29 11:48 levenies 阅读(228) 评论(0) 推荐(0) 编辑
摘要: function dump(value, desciption, nesting) if type(nesting) ~= "number" then nesting = 3 end local lookupTable = {} local result = {} local function _v(v) if type(v) == "stri... 阅读全文
posted @ 2016-03-29 11:45 levenies 阅读(2128) 评论(0) 推荐(0) 编辑