Skip to content

Commit e10fc3a

Browse files
committed
fix hide Skip Done Button style
1 parent ad0e83e commit e10fc3a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

AppIntro.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,23 +203,27 @@ export default class AppIntro extends Component {
203203
}
204204
return (
205205
<View style={[this.styles.paginationContainer]}>
206-
{this.props.showSkipButton && <SkipButton
206+
{this.props.showSkipButton ? <SkipButton
207207
{...this.props}
208208
{...this.state}
209209
isSkipBtnShow={isSkipBtnShow}
210210
styles={this.styles}
211-
onSkipBtnClick={() => this.props.onSkipBtnClick(index)} />}
211+
onSkipBtnClick={() => this.props.onSkipBtnClick(index)} /> :
212+
<View style={this.styles.btnContainer} />
213+
}
212214
{this.props.showDots && RenderDots(index, total, {
213215
...this.props,
214216
styles: this.styles
215217
})}
216-
{this.props.showDoneButton && <DoneButton
218+
{this.props.showDoneButton ? <DoneButton
217219
{...this.props}
218220
{...this.state}
219221
isDoneBtnShow={isDoneBtnShow}
220222
styles={this.styles}
221223
onNextBtnClick={this.onNextBtnClick.bind(this, context)}
222-
onDoneBtnClick={this.props.onDoneBtnClick} />}
224+
onDoneBtnClick={this.props.onDoneBtnClick} /> :
225+
<View style={this.styles.btnContainer} />
226+
}
223227
</View>
224228
);
225229
}

0 commit comments

Comments
 (0)