-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* ShopReactNative | ||
* | ||
* @author Tony Wong | ||
* @date 2016-08-13 | ||
* @email 908601756@qq.com | ||
* @copyright Copyright © 2016 EleTeam | ||
* @license The MIT License (MIT) | ||
*/ | ||
|
||
'use strict'; | ||
|
||
import React from 'react'; | ||
import { | ||
Dimensions, | ||
Image, | ||
InteractionManager, | ||
View | ||
} from 'react-native'; | ||
|
||
import TabBarView from '../containers/TabBarView'; | ||
|
||
var {height, width} = Dimensions.get('window'); | ||
|
||
class Splash extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
} | ||
componentDidMount() { | ||
const {navigator} = this.props; | ||
this.timer=setTimeout(() => { | ||
InteractionManager.runAfterInteractions(() => { | ||
navigator.resetTo({ | ||
component: TabBarView, | ||
name: 'TabBarView' | ||
}); | ||
}); | ||
}, 2500); | ||
} | ||
componentWillUnmount() { | ||
this.timer && clearTimeout(this.timer); | ||
} | ||
|
||
render() { | ||
return ( | ||
<View style={{flex:1}}> | ||
<Image | ||
style={{flex:1,width:width,height:height}} | ||
source={require('../images/ic_welcome.jpg')} | ||
/> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
export default Splash; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters