Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": false
}
15 changes: 9 additions & 6 deletions AppIntro.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -75,7 +76,7 @@ const defaulStyles = {
right: 0,
flexDirection: 'row',
flex: 1,
justifyContent: 'center',
justifyContent: 'space-between',
alignItems: 'center',
backgroundColor: 'transparent',
},
Expand Down Expand Up @@ -212,10 +213,12 @@ export default class AppIntro extends Component {
onSkipBtnClick={() => this.props.onSkipBtnClick(index)} /> :
<View style={this.styles.btnContainer} />
}
{this.props.showDots && RenderDots(index, total, {
...this.props,
styles: this.styles
})}
<View style={this.styles.dotContainer}>
{this.props.showDots && RenderDots(index, total, {
...this.props,
styles: this.styles
})}
</View>
{this.props.showDoneButton ? <DoneButton
{...this.props}
{...this.state}
Expand Down
3 changes: 2 additions & 1 deletion Example/AppIntro.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
152 changes: 152 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"homepage": "https://github.com/fuyaode/react-native-app-intro#readme",
"dependencies": {
"assign-deep": "^0.4.5",
"react-native-swiper": "git+https://github.com/FuYaoDe/react-native-swiper.git"
"prop-types": "^15.6.1",
"react-native-swiper": "^1.5.13"
}
}