Skip to content

create start screen#5

Open
patryksliwinski wants to merge 3 commits intomasterfrom
start_screen
Open

create start screen#5
patryksliwinski wants to merge 3 commits intomasterfrom
start_screen

Conversation

@patryksliwinski
Copy link
Copy Markdown
Contributor

No description provided.

@patryksliwinski patryksliwinski requested a review from maxym49 March 24, 2020 08:16

const getCurrentInterval = (offset) => {
for (let i = 1; i <= intervals; i++) {
if (offset < width * i - 0.5 * width) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dzięki temu zapisowi
- 0.5 * width
na emulatorze też wszystko działa.
Powoduje to, że porównuje pozycje środka każdego slide, a nie jego końca.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

komentarz w kodzie a nie na GH xd


const getCurrentInterval = (offset) => {
for (let i = 1; i <= intervals; i++) {
if (offset < width * i - 0.5 * width) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

komentarz w kodzie a nie na GH xd

}
};

const indicators = new Array(totalItems).fill(undefined);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

czemu tak? a nie po prostu const indicators = [];

);
};

Carousel.defaultProps = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

na początku propTypes a potem defaultProps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants