开发者社区 问答 正文

react native 如何实现定时提醒

尝试用react native编写一个app 需要实现定时提醒 不知道该怎么实现

展开
收起
a123456678 2016-07-28 17:28:31 2606 分享 版权
1 条回答
写回答
取消 提交回答
  • var TimerMixin = require('react-timer-mixin');
    
    
    module.exports = React.createClass({
        mixins: [TimerMixin],
        handdle: function() {
            this.setTimeout(() => {
    
            }, 2000);
        }
    });
    2019-07-17 20:01:28
    赞同 展开评论