From 03de37170f121e98fc1221266a90af627cc76442 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 21 Mar 2019 17:53:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=A8=E7=94=BB][=E4=BF=AE=E6=94=B9]:[?= =?UTF-8?q?=E5=BF=83=E8=B7=B3=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/App.js b/App.js index 1999a66..d9598c5 100644 --- a/App.js +++ b/App.js @@ -55,16 +55,16 @@ var animationThemes = [ second:"slideInLeft", third:"slideInRight" }, - { - first:"fadeIn", - second:"fadeIn", - third:"fadeIn" - }, { first:"zoomInDown", second:"zoomInLeft", third:"zoomInRight" }, + { + first:"fadeIn", + second:"fadeIn", + third:"fadeIn" + }, { first:"bounceInDown", second:"bounceInLeft", @@ -83,7 +83,8 @@ export default class MyPage extends Component { contentItem2:null, animationTheme:{}, heartConfig:{ - heartbeatInterval:1000*5*60, + heartbeatInterval:1000*5, + // heartbeatInterval:1000*5*60, dataRefreshInterval:1000*60*60, pageChangeInterval:1000*10, }, @@ -168,21 +169,23 @@ codePushStatusDidChange(syncStatus) { pageChangeInterval:config.pageChangeInterval } }) - // 动画 + // 动画划入 if(config.animationTheme == 0){ this.setState({ animationTheme:animationThemes[0] }) }else if(config.animationTheme == 1){ + // 放大 this.setState({ animationTheme:animationThemes[1] }) - }else if(config.animationTheme == 2){ + // 淡入 this.setState({ animationTheme:animationThemes[2] }) }else if(config.animationTheme == 3){ + // 弹入 this.setState({ animationTheme:animationThemes[3] })