Commit 5639225 1 parent 71150c3 commit 5639225 Copy full SHA for 5639225
File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ export default class Slide extends React.Component{
52
52
}
53
53
54
54
componentDidMount ( ) {
55
- this . state . autoPlay && this . _autoPlay ( ) ;
55
+ //this.state.autoPlay && this._autoPlay();
56
+ React . Children . count ( this . state . children ) && this . state . autoPlay && this . _autoPlay ( ) ;
56
57
}
57
58
58
59
componentWillUnmount ( ) {
@@ -197,7 +198,12 @@ export default class Slide extends React.Component{
197
198
render ( ) {
198
199
//first come may have no child, such as async get child
199
200
if ( ! React . Children . count ( this . state . children ) ) { //this.state.children.length?
200
- return false ;
201
+ return (
202
+ < View style = { [ styles . container , {
203
+ height : this . state . height
204
+ } ] } >
205
+ </ View >
206
+ ) ;
201
207
}
202
208
let state = this . state ;
203
209
//pagination
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-slide" ,
3
- "version" : " 0.1.5 " ,
3
+ "version" : " 0.1.6 " ,
4
4
"description" : " react-native-slide" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments