diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9792498 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": false +} \ No newline at end of file diff --git a/AppIntro.js b/AppIntro.js index 52b42d9..46e6301 100644 --- a/AppIntro.js +++ b/AppIntro.js @@ -1,5 +1,6 @@ import assign from 'assign-deep'; -import React, { Component, PropTypes } from 'react'; +import PropTypes from "prop-types"; +import React, { Component } from 'react'; import { StatusBar, StyleSheet, @@ -75,7 +76,7 @@ const defaulStyles = { right: 0, flexDirection: 'row', flex: 1, - justifyContent: 'center', + justifyContent: 'space-between', alignItems: 'center', backgroundColor: 'transparent', }, @@ -212,10 +213,12 @@ export default class AppIntro extends Component { onSkipBtnClick={() => this.props.onSkipBtnClick(index)} /> : } - {this.props.showDots && RenderDots(index, total, { - ...this.props, - styles: this.styles - })} + + {this.props.showDots && RenderDots(index, total, { + ...this.props, + styles: this.styles + })} + {this.props.showDoneButton ?