Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix until does not update when state.property is changed , stays one state behind.#109

Open
pwliuab wants to merge 3 commits intotalalmajali:masterfrom
pwliuab:master
Open

fix until does not update when state.property is changed , stays one state behind.#109
pwliuab wants to merge 3 commits intotalalmajali:masterfrom
pwliuab:master

Conversation

Copy link

pwliuab commented Apr 2, 2022

fix until does not update when state.property is changed , stays one state behind.

  • adding !this.state.isStartedCountDown and this.props.until !== this.preState.until in componentDidUpdate to check intial update
  • one state behind that's because this.props.until == this.preProp.until is always true, intially.

Copy link

rayyanekaputra commented May 19, 2022

im new, how do you pull this as an import CountDown from 'react-native-countdown-component'; ? or do i need to reinstall the whole library but with your branch? how do i achieve that? thank youu

Copy link
Author

pwliuab commented May 20, 2022

im new, how do you pull this as an import CountDown from 'react-native-countdown-component'; ? or do i need to reinstall the whole library but with your branch? how do i achieve that? thank youu

you can first import the original countdown. Then, you go to the node modules of the original version.
Find out the 'react-native-countdown-component' Then, take a look to my pull request, see what is added,
you can fix it by adding my changes manually.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants