Skip to content

Commit 2b5c234

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 9dc5eab + 9d85986 commit 2b5c234

File tree

5 files changed

+155
-41
lines changed

5 files changed

+155
-41
lines changed

app/components/LoginPage.js

+10-7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class LoginPage extends Component {
7777
this.refs.lottieView.reset();
7878
}
7979
}
80+
8081
startAnimation() {
8182
if (this.thisUnmount) {
8283
return;
@@ -175,13 +176,15 @@ class LoginPage extends Component {
175176
style={[styles.centered, styles.absoluteFull, {backgroundColor: Constant.primaryColor}, {opacity: this.state.opacity}]}>
176177
<StatusBar hidden={false} backgroundColor={Constant.primaryColor} translucent
177178
barStyle={'light-content'}/>
178-
<View style={[styles.absoluteFull,{zIndex: -999, justifyContent:'flex-end'}]}>
179-
<LottieView
180-
ref="lottieView"
181-
style={{width: screenWidth, height:screenHeight / 2}}
182-
source={require('../style/lottie/animation-login.json')}
183-
progress={this.state.progress}
184-
/>
179+
<View style={[styles.absoluteFull, {zIndex: -999, justifyContent: 'flex-end'}]}>
180+
<View style={{width: screenWidth, height: screenHeight / 2}}>
181+
<LottieView
182+
ref="lottieView"
183+
style={{width: screenWidth, height: screenHeight / 2}}
184+
source={require('../style/lottie/animation-login.json')}
185+
progress={this.state.progress}
186+
/>
187+
</View>
185188
</View>
186189
<View
187190
style={[{backgroundColor: Constant.miWhite}, {

app/components/WelcomePage.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class WelcomePage extends Component {
3333

3434
componentDidMount() {
3535
//处理白屏
36-
if(Platform.OS === 'android') {
36+
if (Platform.OS === 'android') {
3737
SplashScreen.hide();
3838
}
3939
//是否登陆,是否用户信息
@@ -71,16 +71,18 @@ class WelcomePage extends Component {
7171
<Image source={require("../img/welcome.png")}
7272
resizeMode={"contain"}
7373
style={{width: screenWidth, height: screenHeight}}/>
74-
<View style={[{justifyContent:'flex-end', alignItems: 'center', }, styles.absoluteFull]}>
75-
<LottieView
76-
ref="lottieView"
77-
style={{
78-
width: 150,
79-
height: 150,
80-
}}
81-
source={require('../style/lottie/animation-w800-h800.json')}
82-
progress={this.state.progress}
83-
/>
74+
<View style={[styles.absoluteFull, styles.centered, {justifyContent: "flex-end"}]}>
75+
<View style={[styles.centered, {width: 150, height:150}]}>
76+
<LottieView
77+
ref="lottieView"
78+
style={{
79+
width: 150,
80+
height: 150,
81+
}}
82+
source={require('../style/lottie/animation-w800-h800.json')}
83+
progress={this.state.progress}
84+
/>
85+
</View>
8486
</View>
8587
</View>
8688
</View>

0 commit comments

Comments
 (0)