Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic children prop support (react-native-read-more-text) #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vtsybulin
Copy link

Add dynamic children prop support so if children are changed it's being taken into account while setting component state leading to proper "Show more", "Show less" buttons behavior.

The problem: if the children prop is a dynamic one, the component doesn't behave as expected (meaning "Show more" button visibility is being decided only on the mount stage).

Current behavior:
current

Desired behavior:
updates

Add dynamic children prop support so if children was changed it's being taken into account while setting component state leading to proper "Show more", "Show less" buttons behaviour
@vtsybulin vtsybulin changed the title Add dynamic children prop support Add dynamic children prop support (react-native-read-more-text) Dec 3, 2020
@vtsybulin
Copy link
Author

@brentvatne Hi. Any chance this could be reviewed? Thanks.

@milansusnjar
Copy link

Make sure you check it, I have this error sometimes:

TypeError: null is not an object (evaluating 'component.measure')

@brentvatne
Copy link
Member

i think the best path forward is for someone to make a new version of this library, and i can mark it as archived since we no longer maintain it :)

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.

3 participants