Skip to content

Commit 9633cb9

Browse files
committed
Removed paginationStyles and dotStyles
1 parent ed32640 commit 9633cb9

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

AppIntro.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,9 @@ export default class AppIntro extends Component {
278278
isSkipBtnShow = true;
279279
}
280280
let controllBts;
281-
const {paginationStyles} = this.props;
282281
if (Platform.OS === 'ios') {
283282
controllBts = (
284-
<View style={[this.styles.paginationContainer, paginationStyles]}>
283+
<View style={[this.styles.paginationContainer]}>
285284
{this.renderSkipButton()}
286285
<View style={this.styles.dotContainer}>
287286
{dots}
@@ -291,7 +290,7 @@ export default class AppIntro extends Component {
291290
);
292291
} else {
293292
controllBts = (
294-
<View style={[this.styles.paginationContainer, paginationStyles]}>
293+
<View style={[this.styles.paginationContainer]}>
295294
<View style={[this.styles.btnContainer, {
296295
paddingBottom: 5,
297296
opacity: isSkipBtnShow ? 1 : 0,
@@ -456,9 +455,7 @@ AppIntro.propTypes = {
456455
showSkipButton: PropTypes.bool,
457456
showDoneButton: PropTypes.bool,
458457
renderDoneButton: PropTypes.element,
459-
renderSkipButton: PropTypes.element,
460-
paginationStyles: PropTypes.object,
461-
dotStyles: PropTypes.object
458+
renderSkipButton: PropTypes.element
462459
};
463460

464461
AppIntro.defaultProps = {
@@ -476,7 +473,5 @@ AppIntro.defaultProps = {
476473
nextBtnLabel: '›',
477474
defaultIndex: 0,
478475
showSkipButton: true,
479-
showDoneButton: true,
480-
paginationStyles: {},
481-
dotStyles: {}
476+
showDoneButton: true
482477
};

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ And in Android, image inside view component, view need width、height.
177177
| defaultIndex | number | 0 | number of the index of the initial index |
178178
| renderSkipButton | bool | true | a boolean defining if we should render the skip button |
179179
| renderDoneButton | bool | true | a boolean that defines if we should render the done button |
180-
| paginationStyles | object | {} | an object of custom styling for the pagination container |
181-
| dotStyles | object | {} | an object of custom styling for the dot pagination |
182180

183181
##### **Children View Properties**
184182
| Prop | PropType | Default Value | Description |

0 commit comments

Comments
 (0)